pull/1030/head
AugusMeow 3 years ago committed by GitHub
parent b5fd7d5eea
commit fb611328d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -202,7 +202,7 @@ use std::io::Read;
fn read_username_from_file() -> Result<String, io::Error> {
let mut f = File::open("hello.txt")?;
let mut s = String::new();
f.read_to_string(&mut s)?;
f?.read_to_string(&mut s)?;
Ok(s)
}
```

Loading…
Cancel
Save