diff --git a/absl/BUILD.bazel b/absl/BUILD.bazel index 92e9059bb..403a35c38 100644 --- a/absl/BUILD.bazel +++ b/absl/BUILD.bazel @@ -36,7 +36,7 @@ config_setting( config_setting( name = "windows", values = { - "cpu": "x64_windows_msvc", + "cpu": "x64_windows", }, ) diff --git a/absl/base/config.h b/absl/base/config.h index 875d8e4fb..4aff49237 100644 --- a/absl/base/config.h +++ b/absl/base/config.h @@ -335,7 +335,7 @@ // ABSL_HAVE_STD_ANY // -// Checks whether C++17 std::any is availble by checking whether exists. +// Checks whether C++17 std::any is available by checking whether exists. #ifdef ABSL_HAVE_STD_ANY #error "ABSL_HAVE_STD_ANY cannot be directly set." #endif diff --git a/absl/strings/string_view.h b/absl/strings/string_view.h index 033509ada..951e9cbc0 100644 --- a/absl/strings/string_view.h +++ b/absl/strings/string_view.h @@ -176,7 +176,7 @@ class string_view { constexpr string_view(const char* str) // NOLINT(runtime/explicit) : ptr_(str), length_(StrLenInternal(str)) {} - // Implicit consructor of a `string_view` from a `const char*` and length + // Implicit constructor of a `string_view` from a `const char*` and length. constexpr string_view(const char* data, size_type len) : ptr_(data), length_(CheckLengthInternal(len)) {} @@ -324,7 +324,7 @@ class string_view { // Explicit conversion operators - // Supports conversion to both `std::basic_string` where available. + // Converts to `std::basic_string`. template explicit operator std::basic_string() const { if (!data()) return {}; diff --git a/absl/time/time.h b/absl/time/time.h index 17dbfa6fb..093f168df 100644 --- a/absl/time/time.h +++ b/absl/time/time.h @@ -477,11 +477,11 @@ inline std::ostream& operator<<(std::ostream& os, Duration d) { // ParseDuration() // -// Parses a duration std::string consisting of a possibly signed sequence -// of decimal numbers, each with an optional fractional part and a -// unit suffix. The valid suffixes are "ns", "us" "ms", "s", "m", -// and "h". Simple examples include "300ms", "-1.5h", and "2h45m". -// Parses "inf" and "-inf" as +/- `InfiniteDuration()`. +// Parses a duration std::string consisting of a possibly signed sequence of +// decimal numbers, each with an optional fractional part and a unit +// suffix. The valid suffixes are "ns", "us" "ms", "s", "m", and "h". +// Simple examples include "300ms", "-1.5h", and "2h45m". Parses "0" as +// `ZeroDuration()`. Parses "inf" and "-inf" as +/- `InfiniteDuration()`. bool ParseDuration(const std::string& dur_string, Duration* d); // Flag Support