Skip to content

Commit c324a8a

Browse files
committed
Documentation fix for PathBuf#pop
It returns `false`, not `none`.
1 parent bc87efe commit c324a8a

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)