Commit 3c8b5d75 by Abseil Team Committed by Derek Mauro

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
parent 7ba8cdb5
...@@ -20,14 +20,14 @@ ...@@ -20,14 +20,14 @@
// //
// * An `absl::Status` class for holding error handling information // * An `absl::Status` class for holding error handling information
// * A set of canonical `absl::StatusCode` error codes, and associated // * 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 // * A set of helper functions for creating status codes and checking their
// values // values
// //
// Within Google, `absl::Status` is the primary mechanism for gracefully // Within Google, `absl::Status` is the primary mechanism for gracefully
// handling errors across API boundaries (and in particular across RPC // handling errors across API boundaries (and in particular across RPC
// boundaries). Some of these errors may be recoverable, but others may not. // 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`). // return an `absl::Status` (or `absl::StatusOr`).
// //
// Example: // Example:
...@@ -332,7 +332,7 @@ std::ostream& operator<<(std::ostream& os, StatusCode code); ...@@ -332,7 +332,7 @@ std::ostream& operator<<(std::ostream& os, StatusCode code);
// case absl::StatusCode::kPermissionDenied: // case absl::StatusCode::kPermissionDenied:
// LOG(ERROR) << result; // LOG(ERROR) << result;
// break; // break;
// // Propogate the error otherwise // // Propagate the error otherwise.
// default: // default:
// return true; // return true;
// } // }
......
...@@ -98,7 +98,7 @@ class BadStatusOrAccess : public std::exception { ...@@ -98,7 +98,7 @@ class BadStatusOrAccess : public std::exception {
template <typename T> template <typename T>
class ABSL_MUST_USE_RESULT StatusOr; 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 // 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 // and an object of type `T`. The `absl::StatusOr<T>` models an object that is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment