We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc87efe commit c324a8aCopy full SHA for c324a8a
src/libstd/path.rs
@@ -878,7 +878,8 @@ impl PathBuf {
878
879
/// Truncate `self` to `self.parent()`.
880
///
881
- /// Returns `None` and does nothing if `self.parent()` is `None`.
+ /// Returns `false` and does nothing if `self.parent()` is `None`.
882
+ /// Otherwise, returns `true`.
883
pub fn pop(&mut self) -> bool {
884
match self.parent().map(|p| p.as_u8_slice().len()) {
885
Some(len) => {
0 commit comments