diff options
Diffstat (limited to 'absl/status/statusor.h')
-rw-r--r-- | absl/status/statusor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/absl/status/statusor.h b/absl/status/statusor.h index bdf6039d..b7c55cc8 100644 --- a/absl/status/statusor.h +++ b/absl/status/statusor.h @@ -129,13 +129,13 @@ class ABSL_MUST_USE_RESULT StatusOr; // Example: // // absl::StatusOr<int> i = GetCount(); -// if (foo.ok()) { +// if (i.ok()) { // updated_total += *i // } // // NOTE: using `absl::StatusOr<T>::value()` when no valid value is present will // throw an exception if exceptions are enabled or terminate the process when -// execeptions are not enabled. +// exceptions are not enabled. // // Example: // @@ -542,7 +542,7 @@ class StatusOr : private internal_statusor::StatusOrData<T>, // StatusOr<T>::value_or() // - // Returns the current value of `this->ok() == true`. Otherwise constructs a + // Returns the current value if `this->ok() == true`. Otherwise constructs a // value using the provided `default_value`. // // Unlike `value`, this function returns by value, copying the current value |