Note the difference between new() and default()

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2022-10-29 21:14:12 +09:00
parent 80588ef91d
commit 6631fd73ae
No known key found for this signature in database

View File

@ -1004,6 +1004,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,