diff options
| author | Camille TJHOA <camille.tjhoa@outlook.com> | 2015-03-04 23:09:03 +0100 |
|---|---|---|
| committer | Camille TJHOA <camille.tjhoa@outlook.com> | 2015-03-04 23:09:03 +0100 |
| commit | b1e0dfb25c5a3878a27eb3cc15606306f2d3a7bd (patch) | |
| tree | 83d91707743a98f11cb4f7cd3cfb9eb322da4341 | |
| parent | 3b3bb0e682c2d252e9f62dd9df5cff9552af91ad (diff) | |
| download | rust-b1e0dfb25c5a3878a27eb3cc15606306f2d3a7bd.tar.gz rust-b1e0dfb25c5a3878a27eb3cc15606306f2d3a7bd.zip | |
docs(path.rs): fix ends_with method
| -rwxr-xr-x | src/libstd/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index b85a0dcec81..4fd263f96c4 100755 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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() } |
