Skip to content

Commit 864875a

Browse files
committed
Rollup merge of rust-lang#22162 - ogham:patch-1, r=steveklabnik
It returns `false`, not `None`.
2 parents af6d6ae + c324a8a commit 864875a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/path.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,8 @@ impl PathBuf {
878878

879879
/// Truncate `self` to `self.parent()`.
880880
///
881-
/// Returns `None` and does nothing if `self.parent()` is `None`.
881+
/// Returns `false` and does nothing if `self.parent()` is `None`.
882+
/// Otherwise, returns `true`.
882883
pub fn pop(&mut self) -> bool {
883884
match self.parent().map(|p| p.as_u8_slice().len()) {
884885
Some(len) => {

0 commit comments

Comments
 (0)