--- a/rust/hg-core/src/matchers.rs Fri Nov 29 17:24:40 2019 +0100
+++ b/rust/hg-core/src/matchers.rs Fri Nov 29 18:53:52 2019 +0100
@@ -78,6 +78,16 @@
}
/// Matches everything.
+///```
+/// use hg::{ matchers::{Matcher, AlwaysMatcher}, utils::hg_path::HgPath };
+///
+/// let matcher = AlwaysMatcher;
+///
+/// assert_eq!(true, matcher.matches(HgPath::new(b"whatever")));
+/// assert_eq!(true, matcher.matches(HgPath::new(b"b.txt")));
+/// assert_eq!(true, matcher.matches(HgPath::new(b"main.c")));
+/// assert_eq!(true, matcher.matches(HgPath::new(br"re:.*\.c$")));
+/// ```
#[derive(Debug)]
pub struct AlwaysMatcher;