Skip to content

Commit 83ac540

Browse files
authored
avoid reserved keyword try as crate name (#1619)
1 parent 5856006 commit 83ac540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testing/doc_testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ and `unwrap` it in hidden `main`. Sounds complicated? Here's an example:
8484
/// ```
8585
/// # // hidden lines start with `#` symbol, but they're still compilable!
8686
/// # fn try_main() -> Result<(), String> { // line that wraps the body shown in doc
87-
/// let res = try::try_div(10, 2)?;
87+
/// let res = doccomments::try_div(10, 2)?;
8888
/// # Ok(()) // returning from try_main
8989
/// # }
9090
/// # fn main() { // starting main that'll unwrap()

0 commit comments

Comments
 (0)