Googletest export

Update the `DescribeTo` signature in the code example at the Writing New Polymorphic Matchers section in gmock_cook_book.

`os` should be a pointer to be consistent with the implementation, which dereference it as `*os`.

PiperOrigin-RevId: 370693387
This commit is contained in:
Abseil Team 2021-04-27 12:07:57 -04:00 committed by Derek Mauro
parent 6e8a8623fb
commit 719fd2d36f

View File

@ -3696,7 +3696,7 @@ class NotNullMatcher {
}
// Describes the property of a value matching this matcher.
void DescribeTo(std::ostream& os) const { *os << "is not NULL"; }
void DescribeTo(std::ostream* os) const { *os << "is not NULL"; }
// Describes the property of a value NOT matching this matcher.
void DescribeNegationTo(std::ostream* os) const { *os << "is NULL"; }