Skip to content

Commit

Permalink
docs(path.rs): fix ends_with method
Browse files Browse the repository at this point in the history
  • Loading branch information
ctjhoa committed Mar 4, 2015
1 parent 3b3bb0e commit b1e0dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/path.rs
Expand Up @@ -1193,7 +1193,7 @@ impl Path {
iter_after(self.components(), base.as_path().components()).is_some()
}

/// Determines whether `base` is a suffix of `self`.
/// Determines whether `child` is a suffix of `self`.
pub fn ends_with<P: ?Sized>(&self, child: &P) -> bool where P: AsPath {
iter_after(self.components().rev(), child.as_path().components().rev()).is_some()
}
Expand Down

0 comments on commit b1e0dfb

Please sign in to comment.