Skip to content

Commit 8779937

Browse files
Abseil Teamsuertreus
authored andcommitted
Googletest export
Fix errata in gmock cook_book.md ON_CALL example PiperOrigin-RevId: 346165890
1 parent a02a591 commit 8779937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

googlemock/docs/cook_book.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ argument matchers:
520520

521521
```cpp
522522
ON_CALL(factory, DoMakeTurtle)
523-
.WillByDefault(MakeMockTurtle());
523+
.WillByDefault(Return(MakeMockTurtle()));
524524
```
525525

526526
### Alternative to Mocking Concrete Classes

0 commit comments

Comments
 (0)