Skip to content

Commit dda7a3c

Browse files
author
Eric Findlay
committed
Fixed "foo()" in try! example, r=steveklabnik
1 parent 46b30cc commit dda7a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ don't return anything so this will give a mismatched types error.
395395
/// try!(io::stdin().read_line(&mut input));
396396
/// # Ok(())
397397
/// # }
398-
/// # foo();
399398
/// ```
399+
# fn foo() {}
400400
```
401401

402402
You can get around this by wrapping the code in a function. This catches

0 commit comments

Comments
 (0)