summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-04-27 12:07:57 -0400
committerDerek Mauro <dmauro@google.com>2021-04-29 10:40:21 -0400
commit719fd2d36fdf98d14ae15618c96d445e7fe00843 (patch)
treefac4943a6eece810748ed46fa9fe05e05883cc4c
parent6e8a8623fb5658647305b34d326899eb75b7a527 (diff)
downloadgoogletest-719fd2d36fdf98d14ae15618c96d445e7fe00843.tar.gz
googletest-719fd2d36fdf98d14ae15618c96d445e7fe00843.zip
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
-rw-r--r--docs/gmock_cook_book.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md
index c6a99912..bb3f0bd7 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"; }
OpenPOWER on IntegriCloud