We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b30cc commit dda7a3cCopy full SHA for dda7a3c
src/doc/trpl/documentation.md
@@ -395,8 +395,8 @@ don't return anything so this will give a mismatched types error.
395
/// try!(io::stdin().read_line(&mut input));
396
/// # Ok(())
397
/// # }
398
-/// # foo();
399
/// ```
+# fn foo() {}
400
```
401
402
You can get around this by wrapping the code in a function. This catches
0 commit comments