From 37c4c9b20f3b4d1b36955318306d41f03d7b58c7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 9 Jul 2020 14:21:37 +0200 Subject: [PATCH] typo and debug print fixup Signed-off-by: Wolfgang Bumiller --- src/pattern.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pattern.rs b/src/pattern.rs index 78fbab2..d24f53d 100644 --- a/src/pattern.rs +++ b/src/pattern.rs @@ -495,7 +495,7 @@ impl Pattern { && ((ci + 1) == components.len() || components[ci + 1].starts_with_slash()) { - // Assuming we matched `foo/` and are at `/` `**` `/`, see if we an let + // Assuming we matched `foo/` and are at `/` `**` `/`, see if we can let // it match nothing, so that `foo/` `**` `/bar` can match `foo/bar`. // // Under the condition that the previous component ended with a slash @@ -700,7 +700,6 @@ fn test() { PatternFlag::PATH_NAME | PatternFlag::IGNORE_CASE, ) .unwrap(); - eprintln!("{:#?}", pattern); assert!(pattern.matches("aBcUl3")); assert!(pattern.matches("AbCuL9")); assert!(!pattern.matches("aBgUl3"));