Skip to content

Commit

Permalink
Merge pull request #121 from JohnTitor/note-default-new-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Nov 7, 2022
2 parents f6fe5c6 + 6631fd7 commit 5a5aad9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Expand Up @@ -1005,6 +1005,11 @@ impl MatchOptions {
/// require_literal_leading_dot: false
/// }
/// ```
///
/// # Note
/// The behavior of this method doesn't match `default()`'s. This returns
/// `case_sensitive` as `true` while `default()` does it as `false`.
// FIXME: Consider unity the behavior with `default()` in a next major release.
pub fn new() -> Self {
Self {
case_sensitive: true,
Expand Down

0 comments on commit 5a5aad9

Please sign in to comment.