diff options
| author | Eric Findlay <e.findlay@protonmail.com> | 2015-11-08 11:00:03 +0900 |
|---|---|---|
| committer | Eric Findlay <e.findlay@protonmail.com> | 2015-11-08 11:00:03 +0900 |
| commit | dda7a3c2a195b7d99f4173f3636a8a7d25ca8c0c (patch) | |
| tree | d4d8d6855d2510f48b8c3ccfb6a841e147cde6fd /src | |
| parent | 46b30ccd895d6fc990474cb6f130b41d0a9b8dcf (diff) | |
| download | rust-dda7a3c2a195b7d99f4173f3636a8a7d25ca8c0c.tar.gz rust-dda7a3c2a195b7d99f4173f3636a8a7d25ca8c0c.zip | |
Fixed "foo()" in try! example, r=steveklabnik
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/trpl/documentation.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/documentation.md b/src/doc/trpl/documentation.md index b3f79f2f1df..dc91c90b0fd 100644 --- a/src/doc/trpl/documentation.md +++ b/src/doc/trpl/documentation.md @@ -395,8 +395,8 @@ don't return anything so this will give a mismatched types error. /// try!(io::stdin().read_line(&mut input)); /// # Ok(()) /// # } -/// # foo(); /// ``` +# fn foo() {} ``` You can get around this by wrapping the code in a function. This catches |
