Fix number of methods in guessing game
This code was refactored, but the words were not Fixes #31284
This commit is contained in:
parent
552bf75e7d
commit
24c928b99a
@ -279,7 +279,7 @@ displaying the message.
|
||||
[expect]: ../std/option/enum.Option.html#method.expect
|
||||
[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:
|
||||
|
||||
```bash
|
||||
@ -680,7 +680,7 @@ fn main() {
|
||||
}
|
||||
```
|
||||
|
||||
The new three lines:
|
||||
The new two lines:
|
||||
|
||||
```rust,ignore
|
||||
let guess: u32 = guess.trim().parse()
|
||||
|
Loading…
x
Reference in New Issue
Block a user