From 719fd2d36fdf98d14ae15618c96d445e7fe00843 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 27 Apr 2021 12:07:57 -0400 Subject: 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 --- docs/gmock_cook_book.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/gmock_cook_book.md') diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md index c6a9991..bb3f0bd 100644 --- a/docs/gmock_cook_book.md +++ b/docs/gmock_cook_book.md @@ -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"; } -- cgit v1.1