diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-12-22 13:31:23 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-12-23 09:10:36 -0800 |
| commit | 9f1739a8e1c45b47fc9605209701567d02195311 (patch) | |
| tree | 714b4caac025aa6002b6fd329e330a2c3602473a /src/libstd/path | |
| parent | 6c9c045064bd74a00d9d98add6cb66a4bf2ad76e (diff) | |
| download | rust-9f1739a8e1c45b47fc9605209701567d02195311.tar.gz rust-9f1739a8e1c45b47fc9605209701567d02195311.zip | |
std: Fix all code examples
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
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()); ``` */ |
