mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-22 06:51:58 +02:00
Add missing import for try-conversions.md example (#1986)
Uncommenting the "write" line causes the example to fail compilation because the compiler can't find `fs`.
This commit is contained in:
parent
70916261ad
commit
06a2683cc7
@ -65,7 +65,7 @@ fn read_username(path: &str) -> Result<String, ReadUsernameError> {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
//fs::write("config.dat", "").unwrap();
|
||||
//std::fs::write("config.dat", "").unwrap();
|
||||
let username = read_username("config.dat");
|
||||
println!("username or error: {username:?}");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user