Skip to content

Commit

Permalink
Documentation fix for PathBuf#pop
Browse files Browse the repository at this point in the history
It returns `false`, not `none`.
  • Loading branch information
ogham committed Feb 11, 2015
1 parent bc87efe commit c324a8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstd/path.rs
Expand Up @@ -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) => {
Expand Down

0 comments on commit c324a8a

Please sign in to comment.