Skip to content

Commit

Permalink
Fix a typo in the documentation for "Using Predicates as Matchers".
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 496679950
Change-Id: I2842050902876231d49a142165bcbb88d737505d
  • Loading branch information
Abseil Team authored and copybara-github committed Dec 20, 2022
1 parent b3bfebd commit 5ab508a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/gmock_cook_book.md
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ int IsEven(int n) { return (n % 2) == 0 ? 1 : 0; }
```

Note that the predicate function / functor doesn't have to return `bool`. It
works as long as the return value can be used as the condition in in statement
works as long as the return value can be used as the condition in the statement
`if (condition) ...`.

### Matching Arguments that Are Not Copyable
Expand Down

0 comments on commit 5ab508a

Please sign in to comment.