Skip to content

Commit 7318787

Browse files
committed
Rollup merge of rust-lang#23045 - ctjhoa:master, r=Manishearth
r? @steveklabnik
2 parents 8eb7235 + b1e0dfb commit 7318787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ impl Path {
11931193
iter_after(self.components(), base.as_path().components()).is_some()
11941194
}
11951195

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

0 commit comments

Comments
 (0)