Rollup merge of #31294 - steveklabnik:gh31284, r=alexcrichton
This code was refactored, but the words were not Fixes #31284
This commit is contained in:
commit
ee7670ef34
@ -279,7 +279,7 @@ displaying the message.
|
|||||||
[expect]: ../std/option/enum.Option.html#method.expect
|
[expect]: ../std/option/enum.Option.html#method.expect
|
||||||
[panic]: error-handling.html
|
[panic]: error-handling.html
|
||||||
|
|
||||||
If we leave off calling these two methods, our program will compile, but
|
If we leave off calling this method, our program will compile, but
|
||||||
we’ll get a warning:
|
we’ll get a warning:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -680,7 +680,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The new three lines:
|
The new two lines:
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
let guess: u32 = guess.trim().parse()
|
let guess: u32 = guess.trim().parse()
|
||||||
|
Loading…
Reference in New Issue
Block a user