diff options
| author | Ori Avtalion <ori@avtalion.name> | 2015-12-02 01:34:08 +0200 |
|---|---|---|
| committer | Ori Avtalion <ori@avtalion.name> | 2015-12-02 01:34:08 +0200 |
| commit | fa0009136dbadb193b1470e09bcee16adaac5797 (patch) | |
| tree | 09df6586c9e047d9a164006e60a7f2d954c14b30 | |
| parent | eb1d018c01f70bcfc38bc8365a3de71c1564f694 (diff) | |
book: Change mention of unused `return` to `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 6a513fb2c59..267daf1c488 100644 --- a/src/doc/book/guessing-game.md +++ b/src/doc/book/guessing-game.md @@ -775,7 +775,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 |
