about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-11 14:02:11 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-11 14:02:11 -0800
commit5e2b69c1b239a24ef7fea882c78e237b1b3fb8f9 (patch)
tree010eb03f6e1721f27b137180a3cdae531cd8f577 /src/libstd
parent92e7aebf4b97cb5033320cf36ad4ff8037dc2f75 (diff)
parentc324a8ace0b51ea6f7301f686677131b661f3294 (diff)
downloadrust-5e2b69c1b239a24ef7fea882c78e237b1b3fb8f9.tar.gz
rust-5e2b69c1b239a24ef7fea882c78e237b1b3fb8f9.zip
rollup merge of #22162: ogham/patch-1
It returns `false`, not `None`.
Diffstat (limited to 'src/libstd')
-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) => {