summaryrefslogtreecommitdiff
path: root/absl/status
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2020-09-08 11:09:19 -0700
committerGravatar Derek Mauro <dmauro@google.com>2020-09-08 14:23:20 -0400
commit3c8b5d7587dc8ecf730ce9996c89e156e408c3ed (patch)
tree3f849299cac02e2fa7269005337b9e97b7eaa3f3 /absl/status
parent7ba8cdb56df3bf4fe4ab4606f3fe4b2ab825afac (diff)
Export of internal Abseil changes
-- 306a7201c5d9fd2fa5bd4f50ea46a61e1f69925b by Abseil Team <absl-team@google.com>: Minor documentation cleanup. PiperOrigin-RevId: 330546393 -- f62a256057797d0a85715ed944760fa62e1ce7a1 by Abseil Team <absl-team@google.com>: Fix typo in comment abls:: -> absl:: PiperOrigin-RevId: 330286163 GitOrigin-RevId: 306a7201c5d9fd2fa5bd4f50ea46a61e1f69925b Change-Id: I9ac174396d1b0fcf9b3e0b8a2b00e088b3eb69cd
Diffstat (limited to 'absl/status')
-rw-r--r--absl/status/status.h6
-rw-r--r--absl/status/statusor.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/absl/status/status.h b/absl/status/status.h
index 530f5807..de10996f 100644
--- a/absl/status/status.h
+++ b/absl/status/status.h
@@ -20,14 +20,14 @@
//
// * An `absl::Status` class for holding error handling information
// * A set of canonical `absl::StatusCode` error codes, and associated
-// utilities for generating and propogating status codes.
+// utilities for generating and propagating status codes.
// * A set of helper functions for creating status codes and checking their
// values
//
// Within Google, `absl::Status` is the primary mechanism for gracefully
// handling errors across API boundaries (and in particular across RPC
// boundaries). Some of these errors may be recoverable, but others may not.
-// Most functions which can produce a recoverable error should be designed to
+// Most functions that can produce a recoverable error should be designed to
// return an `absl::Status` (or `absl::StatusOr`).
//
// Example:
@@ -332,7 +332,7 @@ std::ostream& operator<<(std::ostream& os, StatusCode code);
// case absl::StatusCode::kPermissionDenied:
// LOG(ERROR) << result;
// break;
-// // Propogate the error otherwise
+// // Propagate the error otherwise.
// default:
// return true;
// }
diff --git a/absl/status/statusor.h b/absl/status/statusor.h
index ff0dab65..bdf6039d 100644
--- a/absl/status/statusor.h
+++ b/absl/status/statusor.h
@@ -98,7 +98,7 @@ class BadStatusOrAccess : public std::exception {
template <typename T>
class ABSL_MUST_USE_RESULT StatusOr;
-// abls::StatusOr<T>
+// absl::StatusOr<T>
//
// The `absl::StatusOr<T>` class template is a union of an `absl::Status` object
// and an object of type `T`. The `absl::StatusOr<T>` models an object that is