aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-04-20 15:05:40 -0400
committerGennadiy Rozental <rogeeff@google.com>2020-05-01 17:11:00 -0400
commitfb5d9b66c5b09d7eed1e11aeeabfac4cf987f42c (patch)
tree2a6a092c51860f1922b3f17090f91ec2773fe87f /googlemock
parenta67701056425775c87fe637e7a3fb813ed3994d1 (diff)
downloadgoogletest-fb5d9b66c5b09d7eed1e11aeeabfac4cf987f42c.tar.gz
googletest-fb5d9b66c5b09d7eed1e11aeeabfac4cf987f42c.tar.bz2
googletest-fb5d9b66c5b09d7eed1e11aeeabfac4cf987f42c.zip
Googletest export
Fix comment that describes how to test against nullopt. PiperOrigin-RevId: 307448375
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/include/gmock/gmock-matchers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h
index fe88a7c7..b048fa90 100644
--- a/googlemock/include/gmock/gmock-matchers.h
+++ b/googlemock/include/gmock/gmock-matchers.h
@@ -4784,7 +4784,7 @@ inline InnerMatcher AllArgs(const InnerMatcher& matcher) { return matcher; }
// and is printable using 'PrintToString'. It is compatible with
// std::optional/std::experimental::optional.
// Note that to compare an optional type variable against nullopt you should
-// use Eq(nullopt) and not Optional(Eq(nullopt)). The latter implies that the
+// use Eq(nullopt) and not Eq(Optional(nullopt)). The latter implies that the
// optional value contains an optional itself.
template <typename ValueMatcher>
inline internal::OptionalMatcher<ValueMatcher> Optional(