summary refs log tree commit diff
path: root/src/libstd/path.rs
diff options
context:
space:
mode:
authorBen S <ogham@users.noreply.github.com>2015-02-11 00:45:43 +0000
committerBen S <ogham@users.noreply.github.com>2015-02-11 00:45:43 +0000
commitc324a8ace0b51ea6f7301f686677131b661f3294 (patch)
tree831019600cdbab4f4624b55ae91d5c1dc1258a1f /src/libstd/path.rs
parentbc87efef2cceaec99d30e809cac2b8d22b9e25fc (diff)
downloadrust-c324a8ace0b51ea6f7301f686677131b661f3294.tar.gz
rust-c324a8ace0b51ea6f7301f686677131b661f3294.zip
Documentation fix for PathBuf#pop
It returns `false`, not `none`.
Diffstat (limited to 'src/libstd/path.rs')
-rwxr-xr-xsrc/libstd/path.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 776fa270867..4984b4f9aba 100755
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -878,7 +878,8 @@ impl PathBuf {
 
     /// Truncate `self` to `self.parent()`.
     ///
-    /// Returns `None` and does nothing if `self.parent()` is `None`.
+    /// Returns `false` and does nothing if `self.parent()` is `None`.
+    /// Otherwise, returns `true`.
     pub fn pop(&mut self) -> bool {
         match self.parent().map(|p| p.as_u8_slice().len()) {
             Some(len) => {