Skip to content

Commit d047d76

Browse files
fix: comment
1 parent 0531037 commit d047d76

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 `/`
88
pub(crate) fn get_user_name() -> Option<String> {
99
if cfg!(target_os = "linux") {
1010
std::env::var("USER").ok()

0 commit comments

Comments
 (0)