Skip to content

Commit 6f92980

Browse files
committed
krate::owners: Fix doc comment format
1 parent 4f07f7c commit 6f92980

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/controllers/krate/owners.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ pub fn remove_owners(req: &mut dyn RequestExt) -> EndpointResult {
5555
}
5656

5757
/// Parse the JSON request body of requests to modify the owners of a crate.
58-
/// The format is
5958
///
60-
/// {"owners": ["username", "github:org:team", ...]}
59+
/// The format is:
60+
///
61+
/// ```json
62+
/// {"owners": ["username", "github:org:team", ...]}
63+
/// ```
6164
fn parse_owners_request(req: &mut dyn RequestExt) -> AppResult<Vec<String>> {
6265
let mut body = String::new();
6366
req.body().read_to_string(&mut body)?;

0 commit comments

Comments
 (0)