Skip to content

Commit

Permalink
Rollup merge of rust-lang#36314 - tshepang:not-needed, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
doc: we got coercion going on here, so no need to be this explicit
  • Loading branch information
GuillaumeGomez authored Sep 10, 2016
2 parents 30198bf + b99c5cf commit a221ad0
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 a221ad0

Please sign in to comment.