Skip to content

Commit 6631fd7

Browse files
committed
Note the difference between new() and default()
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
1 parent 80588ef commit 6631fd7

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
@@ -1004,6 +1004,11 @@ impl MatchOptions {
10041004
/// require_literal_leading_dot: false
10051005
/// }
10061006
/// ```
1007+
///
1008+
/// # Note
1009+
/// The behavior of this method doesn't match `default()`'s. This returns
1010+
/// `case_sensitive` as `true` while `default()` does it as `false`.
1011+
// FIXME: Consider unity the behavior with `default()` in a next major release.
10071012
pub fn new() -> Self {
10081013
Self {
10091014
case_sensitive: true,

0 commit comments

Comments
 (0)