From 64bde800081f7a43fd6ce1bf7296017d38b28509 Mon Sep 17 00:00:00 2001 From: August Feng Date: Sat, 1 Oct 2022 10:57:44 -0400 Subject: [PATCH] avoid reserved keyword try as crate name --- src/testing/doc_testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/doc_testing.md b/src/testing/doc_testing.md index 2fac440f92..ad3f78c439 100644 --- a/src/testing/doc_testing.md +++ b/src/testing/doc_testing.md @@ -83,7 +83,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()