Skip to content

Commit

Permalink
Merge pull request #2845 from DannyCeb/main
Browse files Browse the repository at this point in the history
Improve the reading of the code
  • Loading branch information
carols10cents authored Sep 1, 2021
2 parents 687e21b + 710def4 commit fcb5e0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions listings/ch09-error-handling/listing-09-06/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// ANCHOR: here
use std::fs::File;
use std::io;
use std::io::Read;
use std::io::{self, Read};

fn read_username_from_file() -> Result<String, io::Error> {
let f = File::open("hello.txt");
Expand Down

0 comments on commit fcb5e0e

Please sign in to comment.