File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1128,9 +1128,12 @@ impl MatchOptions {
11281128 /// case_sensitive: true,
11291129 /// require_literal_separator: false,
11301130 /// require_literal_leading_dot: false
1131+ /// glob_tilde_expansion: false,
11311132 /// }
11321133 /// ```
1133- ///
1134+ /// # Note
1135+ /// The behavior of this method doesn't match `default()`'s. This returns
1136+ /// `case_sensitive` as `true` while `default()` does it as `false`.
11341137 pub fn new ( ) -> Self {
11351138 Self :: default ( )
11361139 }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ pub(crate) fn get_home_dir() -> Option<String> {
44}
55
66// This function is required when `glob_tilde_expansion` field of `glob::MatchOptions` is
7- // set `true` and pattern starts with `~` ollowed by any char expect `/`
7+ // set `true` and pattern starts with `~` followed by any char expect `/`
88pub ( crate ) fn get_user_name ( ) -> Option < String > {
99 if cfg ! ( target_os = "linux" ) {
1010 std:: env:: var ( "USER" ) . ok ( )
You can’t perform that action at this time.
0 commit comments