From 6631fd73ae3015ccb212e5f29cf48b0cb69ee7ca Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 29 Oct 2022 21:14:12 +0900 Subject: [PATCH] Note the difference between `new()` and `default()` Signed-off-by: Yuki Okushi --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e8935ac..fd42067 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,