mirror of
https://gitee.com/openharmony/third_party_rust_glob
synced 2025-02-17 06:08:22 +00:00
Note the difference between new()
and default()
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
80588ef91d
commit
6631fd73ae
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user