rust/hg-core/src/matchers.rs
changeset 43852 542c8b277261
parent 43850 1bb4e9b02984
child 43874 bc7d8f45c3b6
--- 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;