From 06a2683cc7f30087f2d43450b1eabae751983e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Budnik?= Date: Mon, 15 Apr 2024 16:04:27 +0100 Subject: [PATCH] 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`. --- src/error-handling/try-conversions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error-handling/try-conversions.md b/src/error-handling/try-conversions.md index ea804f1d..54fbf9f3 100644 --- a/src/error-handling/try-conversions.md +++ b/src/error-handling/try-conversions.md @@ -65,7 +65,7 @@ fn read_username(path: &str) -> Result { } fn main() { - //fs::write("config.dat", "").unwrap(); + //std::fs::write("config.dat", "").unwrap(); let username = read_username("config.dat"); println!("username or error: {username:?}"); }