summaryrefslogtreecommitdiffstats
path: root/googlemock/docs
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-12-07 21:22:17 (GMT)
committerAndy Getz <durandal@google.com>2020-12-07 23:04:19 (GMT)
commit8779937dd05016e3a96e477d2bb1f94947486605 (patch)
treed6ef12edfd26c6226a7b9da7c7d772b93161609d /googlemock/docs
parenta02a591605dfef9addde49634bf010dbe8f95c50 (diff)
downloadgoogletest-8779937dd05016e3a96e477d2bb1f94947486605.zip
googletest-8779937dd05016e3a96e477d2bb1f94947486605.tar.gz
googletest-8779937dd05016e3a96e477d2bb1f94947486605.tar.bz2
Googletest export
Fix errata in gmock cook_book.md ON_CALL example PiperOrigin-RevId: 346165890
Diffstat (limited to 'googlemock/docs')
-rw-r--r--googlemock/docs/cook_book.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/docs/cook_book.md b/googlemock/docs/cook_book.md
index c29d4c3..cfe5858 100644
--- a/googlemock/docs/cook_book.md
+++ b/googlemock/docs/cook_book.md
@@ -520,7 +520,7 @@ argument matchers:
```cpp
ON_CALL(factory, DoMakeTurtle)
- .WillByDefault(MakeMockTurtle());
+ .WillByDefault(Return(MakeMockTurtle()));
```
### Alternative to Mocking Concrete Classes