Skip to content

Commit fa00091

Browse files
committed
book: Change mention of unused return to panic!
1 parent eb1d018 commit fa00091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/guessing-game.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ fn main() {
775775
```
776776
777777
And try it out. But wait, didn’t we just add an infinite loop? Yup. Remember
778-
our discussion about `parse()`? If we give a non-number answer, we’ll `return`
778+
our discussion about `parse()`? If we give a non-number answer, we’ll `panic!`
779779
and quit. Observe:
780780
781781
```bash

0 commit comments

Comments
 (0)