about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2015-09-30 08:39:02 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2015-09-30 08:39:02 +0200
commitc6b8deef7dad7b93b8939b0cd994eadfac546ed1 (patch)
treefcb2c9c217bec94a2daf21b033d1e83cbad4ee97 /src/libstd
parent9d009c0ec140711ef22d5bfc239bcd14492cfd08 (diff)
downloadrust-c6b8deef7dad7b93b8939b0cd994eadfac546ed1.tar.gz
rust-c6b8deef7dad7b93b8939b0cd994eadfac546ed1.zip
doc: fix typo
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 8eb5d1f2726..ed70c2bd7b4 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -1292,7 +1292,7 @@ impl Path {
     /// use std::path::Path;
     ///
     /// let path_str = Path::new("foo.txt").to_str();
-    //// assert_eq!(path_str, Some("foo.txt"));
+    /// assert_eq!(path_str, Some("foo.txt"));
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn to_str(&self) -> Option<&str> {