]> git.proxmox.com Git - pathpatterns.git/commitdiff
typo and debug print fixup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 9 Jul 2020 12:21:37 +0000 (14:21 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 9 Jul 2020 12:21:37 +0000 (14:21 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/pattern.rs

index 78fbab265dc8677167481fd9663a8fd7c1a2e8d6..d24f53d5e22f40effb71748d48bf8197215bf634 100644 (file)
@@ -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"));