summaryrefslogtreecommitdiff
path: root/googlemock/docs
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-09-23 10:43:41 -0400
committervslashg <gfalcon@google.com>2020-09-24 12:06:34 -0400
commitdf94fc5f7ef40c941998851c5e5fbd72ddb553f6 (patch)
treedc965fa8bbbec710950571cf2bd1876b9e1b3c9f /googlemock/docs
parent634c52d99cf40306c506e16cc0e9827e387d33f2 (diff)
downloadgoogletest-git-df94fc5f7ef40c941998851c5e5fbd72ddb553f6.tar.gz
Googletest export
Address OSS Issue #2463 https://github.com/google/googletest/issues/2463 PiperOrigin-RevId: 333289989
Diffstat (limited to 'googlemock/docs')
-rw-r--r--googlemock/docs/cook_book.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/googlemock/docs/cook_book.md b/googlemock/docs/cook_book.md
index 6882e987..0890fb87 100644
--- a/googlemock/docs/cook_book.md
+++ b/googlemock/docs/cook_book.md
@@ -1132,10 +1132,11 @@ Hamcrest project, which adds `assertThat()` to JUnit.
### Using Predicates as Matchers
-gMock provides a [built-in set](#MatcherList) of matchers. In case you find them
-lacking, you can use an arbitrary unary predicate function or functor as a
-matcher - as long as the predicate accepts a value of the type you want. You do
-this by wrapping the predicate inside the `Truly()` function, for example:
+gMock provides a [built-in set](cheat_sheet.md#MatcherList) of matchers. In case
+you find them lacking, you can use an arbitrary unary predicate function or
+functor as a matcher - as long as the predicate accepts a value of the type you
+want. You do this by wrapping the predicate inside the `Truly()` function, for
+example:
```cpp
using ::testing::Truly;