diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-12-01 19:01:42 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-12-01 19:01:42 -0500 |
| commit | 9823511b2a2d052c47af7cc4795d26b17a8baf06 (patch) | |
| tree | c454b60d8a109bea38394231259ab3e660abbd3b | |
| parent | 63015e8dc0e02c2470bcaa3b05b7f8d722251c30 (diff) | |
| parent | fa0009136dbadb193b1470e09bcee16adaac5797 (diff) | |
| download | rust-9823511b2a2d052c47af7cc4795d26b17a8baf06.tar.gz rust-9823511b2a2d052c47af7cc4795d26b17a8baf06.zip | |
Rollup merge of #30154 - salty-horse:guessing_panic, r=steveklabnik
The text mentions ```return```, but what's actually happening is a ```panic!```.
| -rw-r--r-- | src/doc/book/guessing-game.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/guessing-game.md b/src/doc/book/guessing-game.md index 0f9bc80af98..8cb00f26ba5 100644 --- a/src/doc/book/guessing-game.md +++ b/src/doc/book/guessing-game.md @@ -779,7 +779,7 @@ fn main() { ``` And try it out. But wait, didn’t we just add an infinite loop? Yup. Remember -our discussion about `parse()`? If we give a non-number answer, we’ll `return` +our discussion about `parse()`? If we give a non-number answer, we’ll `panic!` and quit. Observe: ```bash |
