summaryrefslogtreecommitdiffstats
path: root/docs/gmock_cheat_sheet.md
diff options
context:
space:
mode:
authorDenis Hananein <i@zloylos.me>2022-11-20 14:08:43 (GMT)
committerDenis Hananein <i@zloylos.me>2022-11-20 14:08:43 (GMT)
commit834698cc9b19fc6e327db1b8b7e434e18b5cef38 (patch)
tree6d6572bf71dc50bad8cae07f166df11320a46961 /docs/gmock_cheat_sheet.md
parent9c332145b71c36a5bad9688312c79184f98601ff (diff)
downloadgoogletest-834698cc9b19fc6e327db1b8b7e434e18b5cef38.zip
googletest-834698cc9b19fc6e327db1b8b7e434e18b5cef38.tar.gz
googletest-834698cc9b19fc6e327db1b8b7e434e18b5cef38.tar.bz2
Change MakeUnique -> std::make_unique in docsrefs/pull/4066/head
Diffstat (limited to 'docs/gmock_cheat_sheet.md')
-rw-r--r--docs/gmock_cheat_sheet.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/gmock_cheat_sheet.md b/docs/gmock_cheat_sheet.md
index 67d075d..2fb0403 100644
--- a/docs/gmock_cheat_sheet.md
+++ b/docs/gmock_cheat_sheet.md
@@ -140,7 +140,7 @@ To customize the default action for functions with return type `T`, use
// Sets the default action for return type std::unique_ptr<Buzz> to
// creating a new Buzz every time.
DefaultValue<std::unique_ptr<Buzz>>::SetFactory(
- [] { return MakeUnique<Buzz>(AccessLevel::kInternal); });
+ [] { return std::make_unique<Buzz>(AccessLevel::kInternal); });
// When this fires, the default action of MakeBuzz() will run, which
// will return a new Buzz object.