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.
This commit is contained in:
Garrett Squire
2018-05-06 16:03:11 -07:00
committed by Andrew Gallant
parent 8b57d78b96
commit 83b4fdb8d6
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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