Skip to content

Commit

Permalink
avoid reserved keyword try as crate name (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
augustfengd authored Oct 17, 2022
1 parent 5856006 commit 83ac540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/doc_testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ and `unwrap` it in hidden `main`. Sounds complicated? Here's an example:
/// ```
/// # // hidden lines start with `#` symbol, but they're still compilable!
/// # fn try_main() -> Result<(), String> { // line that wraps the body shown in doc
/// let res = try::try_div(10, 2)?;
/// let res = doccomments::try_div(10, 2)?;
/// # Ok(()) // returning from try_main
/// # }
/// # fn main() { // starting main that'll unwrap()
Expand Down

0 comments on commit 83ac540

Please sign in to comment.