summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCJ Johnson <johnsoncj@google.com>2021-08-26 14:30:09 -0400
committerCJ Johnson <johnsoncj@google.com>2021-08-26 14:30:09 -0400
commit955c7f837efad184ec63e771c42542d37545eaef (patch)
tree731d728b51af2754bfcac87052680fb489a14436
parentff21b36e1e858bf9274ed2bbf4921e415363c393 (diff)
parent088e6ed9a8ead32aeb0c340931465e0036b2eb9f (diff)
downloadgoogletest-git-955c7f837efad184ec63e771c42542d37545eaef.tar.gz
Merge pull request #3531 from theidexisted:patch-1
PiperOrigin-RevId: 392720416
-rw-r--r--docs/gmock_cook_book.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md
index 900bcd1d..baeeb59f 100644
--- a/docs/gmock_cook_book.md
+++ b/docs/gmock_cook_book.md
@@ -2033,10 +2033,7 @@ class MockRolodex : public Rolodex {
}
...
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()));
```