]> git.lizzy.rs Git - rust.git/commitdiff
libstd: Path docs: `file` is now `file_name`
authorRyman <haqkrs@gmail.com>
Fri, 15 May 2015 23:16:11 +0000 (00:16 +0100)
committerRyman <haqkrs@gmail.com>
Fri, 15 May 2015 23:16:11 +0000 (00:16 +0100)
src/libstd/path.rs

index 934b3156357d64e09a2ea574c78c6be9027ff9d4..6732af556e0f1d8cba29213ccda259cb446a8821 100644 (file)
@@ -1485,7 +1485,7 @@ pub fn ends_with<P: AsRef<Path>>(&self, child: P) -> bool {
         iter_after(self.components().rev(), child.as_ref().components().rev()).is_some()
     }
 
-    /// Extracts the stem (non-extension) portion of `self.file()`.
+    /// Extracts the stem (non-extension) portion of `self.file_name()`.
     ///
     /// The stem is:
     ///
@@ -1508,7 +1508,7 @@ pub fn file_stem(&self) -> Option<&OsStr> {
         self.file_name().map(split_file_at_dot).and_then(|(before, after)| before.or(after))
     }
 
-    /// Extracts the extension of `self.file()`, if possible.
+    /// Extracts the extension of `self.file_name()`, if possible.
     ///
     /// The extension is:
     ///