Skip to content

Commit 5a5aad9

Browse files
authored
Merge pull request #121 from JohnTitor/note-default-new-diff
2 parents f6fe5c6 + 6631fd7 commit 5a5aad9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,11 @@ impl MatchOptions {
10051005
/// require_literal_leading_dot: false
10061006
/// }
10071007
/// ```
1008+
///
1009+
/// # Note
1010+
/// The behavior of this method doesn't match `default()`'s. This returns
1011+
/// `case_sensitive` as `true` while `default()` does it as `false`.
1012+
// FIXME: Consider unity the behavior with `default()` in a next major release.
10081013
pub fn new() -> Self {
10091014
Self {
10101015
case_sensitive: true,

0 commit comments

Comments
 (0)