diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-11 14:02:11 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-11 14:02:11 -0800 |
| commit | 5e2b69c1b239a24ef7fea882c78e237b1b3fb8f9 (patch) | |
| tree | 010eb03f6e1721f27b137180a3cdae531cd8f577 /src/libstd | |
| parent | 92e7aebf4b97cb5033320cf36ad4ff8037dc2f75 (diff) | |
| parent | c324a8ace0b51ea6f7301f686677131b661f3294 (diff) | |
| download | rust-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-x | src/libstd/path.rs | 3 |
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) => { |
