globset: expand docs and impl Default for GlobSet

Closes #1882, Closes #1883
This commit is contained in:
Martin Pool
2021-05-31 15:54:55 -07:00
committed by Andrew Gallant
parent ee23ab5173
commit 8a4071eea9
2 changed files with 17 additions and 1 deletions

View File

@@ -616,6 +616,8 @@ impl<'a> GlobBuilder<'a> {
}
/// Toggle whether a literal `/` is required to match a path separator.
///
/// By default this is false: `*` and `?` will match `/`.
pub fn literal_separator(&mut self, yes: bool) -> &mut GlobBuilder<'a> {
self.opts.literal_separator = yes;
self