From a9df3f858ac9af9836227cd497048a6c43236c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Sun, 18 Jul 2021 10:25:14 +0300 Subject: [PATCH] Fix AbsPath::ends_with --- crates/paths/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/paths/src/lib.rs b/crates/paths/src/lib.rs index f976783dea29..14e43bb36137 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