From 9f1739a8e1c45b47fc9605209701567d02195311 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 22 Dec 2013 13:31:23 -0800 Subject: std: Fix all code examples --- src/libstd/path/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/libstd/path') diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index 53948dc8309..6488595ea4f 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -54,12 +54,11 @@ actually operates on the path; it is only intended for display. ```rust let mut path = Path::new("/tmp/path"); -debug!("path: {}", path.display()); +println!("path: {}", path.display()); path.set_filename("foo"); path.push("bar"); -debug!("new path: {}", path.display()); -let b = std::os::path_exists(&path); -debug!("path exists: {}", b); +println!("new path: {}", path.display()); +println!("path exists: {}", path.exists()); ``` */ -- cgit 1.4.1-3-g733a5