Skip to content

Commit 70afa09

Browse files
honglookercopybara-github
authored andcommitted
Update gtest-rust docs with correct MatcherResults
PiperOrigin-RevId: 580643228
1 parent d8aca84 commit 70afa09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ impl<T: PartialEq + Debug> Matcher for MyEqMatcher<T> {
166166

167167
fn describe(&self, matcher_result: MatcherResult) -> String {
168168
match matcher_result {
169-
MatcherResult::Matches => {
169+
MatcherResult::Match => {
170170
format!("is equal to {:?} the way I define it", self.expected)
171171
}
172-
MatcherResult::DoesNotMatch => {
172+
MatcherResult::NoMatch => {
173173
format!("isn't equal to {:?} the way I define it", self.expected)
174174
}
175175
}

0 commit comments

Comments
 (0)