Skip to content

Commit 9823511

Browse files
committed
Rollup merge of #30154 - salty-horse:guessing_panic, r=steveklabnik
The text mentions ```return```, but what's actually happening is a ```panic!```.
2 parents 63015e8 + fa00091 commit 9823511

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
@@ -779,7 +779,7 @@ fn main() {
779779
```
780780
781781
And try it out. But wait, didn’t we just add an infinite loop? Yup. Remember
782-
our discussion about `parse()`? If we give a non-number answer, we’ll `return`
782+
our discussion about `parse()`? If we give a non-number answer, we’ll `panic!`
783783
and quit. Observe:
784784
785785
```bash

0 commit comments

Comments
 (0)