mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 07:20:20 +08:00
Merge pull request #248 from itsmontoya/patch-1
Update ch02-00-guessing-game-tutorial.md
This commit is contained in:
commit
3ae744e99a
@ -188,6 +188,7 @@ Let’s move forward:
|
|||||||
```rust,ignore
|
```rust,ignore
|
||||||
io::stdin().read_line(&mut guess)
|
io::stdin().read_line(&mut guess)
|
||||||
.expect("Failed to read line");
|
.expect("Failed to read line");
|
||||||
|
```
|
||||||
|
|
||||||
We included the input/output functionality from the standard library with use
|
We included the input/output functionality from the standard library with use
|
||||||
std::io; on the first line of the program. We are now calling an associated
|
std::io; on the first line of the program. We are now calling an associated
|
||||||
|
Loading…
Reference in New Issue
Block a user