Skip to content

Commit bd52c9c

Browse files
hovinenbcopybara-github
authored andcommitted
Activate one previously ignored rustdoc example.
PiperOrigin-RevId: 527811939
1 parent 53b4fa9 commit bd52c9c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

googletest/src/matchers/predicate_matcher.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ impl<P> PredicateMatcher<P, NoDescription, NoDescription> {
5353
///
5454
/// For example, to make sure the error message is more useful
5555
///
56-
/// ```ignore
56+
/// ```
57+
/// # use googletest::matchers::{predicate, PredicateMatcher};
58+
/// # let _ =
5759
/// predicate(|x: &i32| x % 2 == 1)
58-
/// .with_description("is odd", "is even")
60+
/// .with_description("is odd", "is even")
61+
/// # ;
5962
/// ```
6063
///
6164
/// This is optional as it only provides value when the test fails.

0 commit comments

Comments
 (0)