From c324a8ace0b51ea6f7301f686677131b661f3294 Mon Sep 17 00:00:00 2001 From: Ben S Date: Wed, 11 Feb 2015 00:45:43 +0000 Subject: [PATCH] Documentation fix for PathBuf#pop It returns `false`, not `none`. --- src/libstd/path.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 776fa27086781..4984b4f9aba78 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) => {