mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Rollup merge of #30154 - salty-horse:guessing_panic, r=steveklabnik
The text mentions ```return```, but what's actually happening is a ```panic!```.
This commit is contained in:
commit
9823511b2a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user