Fix miscellaneous typos in the comments or logging.

PiperOrigin-RevId: 454649199
This commit is contained in:
hai007
2022-06-13 10:55:57 -07:00
committed by Copybara-Service
parent a852817f0e
commit 2d4cc75dfa
21 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ struct Exception {
kInterrupted = 2, // Operation was interrupted.
kInvalidProtocolBuffer = 3, // Couldn't parse.
kExecution = 4, // Couldn't execute.
kTimeout = 5, // Operarion did not finish within specified time.
kTimeout = 5, // Operation did not finish within specified time.
kIllegalCharacters = 6, // File name or parent path contained
// illegal chars
};
@@ -79,7 +79,7 @@ class ExceptionOr {
: result_{result}, exception_{Exception::kSuccess} {} // NOLINT
ExceptionOr(Exception::Value exception) : exception_{exception} {} // NOLINT
ExceptionOr(Exception exception) : exception_{exception} {} // NOLINT
// If there exists explicit conversion from from U to T,
// If there exists explicit conversion from U to T,
// then allow explicit conversion from ExceptionOr<U> to ExceptionOr<T>.
template <typename U, typename = absl::void_t<decltype(T{std::declval<U>()})>>
explicit ExceptionOr<T>(ExceptionOr<U> value) {