From 83b4fdb8d664afe7773ce674b5f1b658c2c5a057 Mon Sep 17 00:00:00 2001 From: Garrett Squire Date: Sun, 6 May 2018 16:03:11 -0700 Subject: [PATCH] ignore/doc: improve docs for case_insensitive This commit updates the OverrideBuilder and GitignoreBuilder docs for the case_insensitive method, denoting that it must be called before adding any patterns. --- ignore/src/gitignore.rs | 2 ++ ignore/src/overrides.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs index abcb3685..b6874d98 100644 --- a/ignore/src/gitignore.rs +++ b/ignore/src/gitignore.rs @@ -500,6 +500,8 @@ impl GitignoreBuilder { /// Toggle whether the globs should be matched case insensitively or not. /// + /// When this option is changed, only globs added after the change will be affected. + /// /// This is disabled by default. pub fn case_insensitive( &mut self, yes: bool diff --git a/ignore/src/overrides.rs b/ignore/src/overrides.rs index 955dc5ad..c63532af 100644 --- a/ignore/src/overrides.rs +++ b/ignore/src/overrides.rs @@ -140,6 +140,8 @@ impl OverrideBuilder { /// Toggle whether the globs should be matched case insensitively or not. /// + /// When this option is changed, only globs added after the change will be affected. + /// /// This is disabled by default. pub fn case_insensitive( &mut self, yes: bool