book: Change mention of unused return to panic!

This commit is contained in:
Ori Avtalion 2015-12-02 01:34:08 +02:00
parent eb1d018c01
commit fa0009136d

View File

@ -775,7 +775,7 @@ fn main() {
```
And try it out. But wait, didnt we just add an infinite loop? Yup. Remember
our discussion about `parse()`? If we give a non-number answer, well `return`
our discussion about `parse()`? If we give a non-number answer, well `panic!`
and quit. Observe:
```bash