1
0
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:
Iván Budnik 2024-04-15 16:04:27 +01:00 committed by GitHub
parent 70916261ad
commit 06a2683cc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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:?}");
}