Googletest export

Fix comment that describes how to test against nullopt.

PiperOrigin-RevId: 307448375
This commit is contained in:
Abseil Team 2020-04-20 15:05:40 -04:00 committed by Gennadiy Rozental
parent a677010564
commit fb5d9b66c5

View File

@ -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(