Skip to content

Commit 57e70da

Browse files
hovinenbcopybara-github
authored andcommitted
Fix a mistake in the documentation for StrMatcherConfigurator::ignoring_ascii_case.
The examples were referring to the now removed matcher eq_ignoring_ascii_case. This updates them to refer to the documented method. PiperOrigin-RevId: 515631675
1 parent 723951f commit 57e70da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

googletest/src/matchers/str_matcher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ pub trait StrMatcherConfigurator<T> {
149149
/// This uses the same rules for case as [`str::eq_ignore_ascii_case`].
150150
///
151151
/// ```
152-
/// verify_that!("Some value", eq_ignoring_ascii_case("SOME VALUE"))?; // Passes
153-
/// verify_that!("Another value", eq_ignoring_ascii_case("Some value"))?; // Fails
152+
/// verify_that!("Some value", eq("SOME VALUE").ignoring_ascii_case())?; // Passes
153+
/// verify_that!("Another value", eq("Some value").ignoring_ascii_case())?; // Fails
154154
/// ```
155155
///
156156
/// This is **not guaranteed** to match strings with differing upper/lower

0 commit comments

Comments
 (0)