mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 21:21:18 -06:00
Merge pull request #399 from kiliankoe/patch-2
Fix code example compile error due to missing use
This commit is contained in:
@@ -361,6 +361,7 @@ to the code that called this function:
|
|||||||
|
|
||||||
```rust
|
```rust
|
||||||
use std::io;
|
use std::io;
|
||||||
|
use std::io::Read;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
|
||||||
fn read_username_from_file() -> Result<String, io::Error> {
|
fn read_username_from_file() -> Result<String, io::Error> {
|
||||||
|
|||||||
Reference in New Issue
Block a user