Documentation fix for PathBuf#pop
It returns `false`, not `none`.
This commit is contained in:
parent
bc87efef2c
commit
c324a8ace0
1 changed files with 2 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue