Skip to content

Commit

Permalink
doc: we got coercion going on here, so no need to be this explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Sep 7, 2016
1 parent 689c6c4 commit b99c5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1169,9 +1169,9 @@ impl PathBuf {
/// let mut p = PathBuf::from("/test/test.rs");
///
/// p.pop();
/// assert_eq!(Path::new("/test"), p.as_path());
/// assert_eq!(Path::new("/test"), p);
/// p.pop();
/// assert_eq!(Path::new("/"), p.as_path());
/// assert_eq!(Path::new("/"), p);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
pub fn pop(&mut self) -> bool {
Expand Down

0 comments on commit b99c5cf

Please sign in to comment.