Merge pull request #3531 from theidexisted:patch-1
PiperOrigin-RevId: 392720416
diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md
index 900bcd1..baeeb59 100644
--- a/docs/gmock_cook_book.md
+++ b/docs/gmock_cook_book.md
@@ -2033,10 +2033,7 @@
}
...
MockRolodex rolodex;
- vector<string> names;
- names.push_back("George");
- names.push_back("John");
- names.push_back("Thomas");
+ vector<string> names = {"George", "John", "Thomas"};
EXPECT_CALL(rolodex, GetNames(_))
.WillOnce(SetArrayArgument<0>(names.begin(), names.end()));
```