mirror of
https://github.com/openharmony/third_party_rust_glob.git
synced 2026-07-01 21:44:50 -04:00
Merge pull request #121 from JohnTitor/note-default-new-diff
This commit is contained in:
@@ -1005,6 +1005,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,
|
||||
|
||||
Reference in New Issue
Block a user