summaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2022-06-06 11:17:43 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-06-06 11:18:31 -0700
commit800a88de73b89926129c63276f133d0f3d375d4a (patch)
treea19301712239440128087f7d0fef8b13d04cb61f /absl
parentef034836d3bfcaff018593014f14a3ebc264cc81 (diff)
Fix comment typo about absl::Status<T*>
PiperOrigin-RevId: 453241556 Change-Id: Ia92d737b6a678e3a4eda965056503392af44486a
Diffstat (limited to 'absl')
-rw-r--r--absl/status/statusor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/status/statusor.h b/absl/status/statusor.h
index a6d29110..a76e7201 100644
--- a/absl/status/statusor.h
+++ b/absl/status/statusor.h
@@ -162,8 +162,8 @@ class ABSL_MUST_USE_RESULT StatusOr;
// A `absl::StatusOr<T*>` can be constructed from a null pointer like any other
// pointer value, and the result will be that `ok()` returns `true` and
// `value()` returns `nullptr`. Checking the value of pointer in an
-// `absl::StatusOr<T>` generally requires a bit more care, to ensure both that a
-// value is present and that value is not null:
+// `absl::StatusOr<T*>` generally requires a bit more care, to ensure both that
+// a value is present and that value is not null:
//
// StatusOr<std::unique_ptr<Foo>> result = FooFactory::MakeNewFoo(arg);
// if (!result.ok()) {