diff --git a/src/libstd/path.rs b/src/libstd/path.rs index b85a0dcec81..4fd263f96c4 100644 --- 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(&self, child: &P) -> bool where P: AsPath { iter_after(self.components().rev(), child.as_path().components().rev()).is_some() }