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
pull/780/head
Abseil Team 5 years ago committed by Derek Mauro
parent 7ba8cdb56d
commit 3c8b5d7587
  1. 6
      absl/status/status.h
  2. 2
      absl/status/statusor.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;
// }

@ -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

Loading…
Cancel
Save