diff --git a/crates/paths/src/lib.rs b/crates/paths/src/lib.rs index f976783dea..14e43bb361 100644 --- a/crates/paths/src/lib.rs +++ b/crates/paths/src/lib.rs @@ -187,7 +187,7 @@ impl AbsPath { self.0.starts_with(&base.0) } pub fn ends_with(&self, suffix: &RelPath) -> bool { - self.0.starts_with(&suffix.0) + self.0.ends_with(&suffix.0) } // region:delegate-methods