Fix spelling errors (#384)
aligment -> alignment constructable -> constructible constuctible -> constructible contructed -> constructed destructable -> destructible futher -> further implcit -> implicit implemenation -> implementation intrinics -> intrinsics
This commit is contained in:
parent
502efe6d78
commit
882b3501a3
9 changed files with 11 additions and 11 deletions
|
@ -157,7 +157,7 @@
|
||||||
// Tags a function as weak for the purposes of compilation and linking.
|
// Tags a function as weak for the purposes of compilation and linking.
|
||||||
// Weak attributes currently do not work properly in LLVM's Windows backend,
|
// Weak attributes currently do not work properly in LLVM's Windows backend,
|
||||||
// so disable them there. See https://bugs.llvm.org/show_bug.cgi?id=37598
|
// so disable them there. See https://bugs.llvm.org/show_bug.cgi?id=37598
|
||||||
// for futher information.
|
// for further information.
|
||||||
#if (ABSL_HAVE_ATTRIBUTE(weak) || \
|
#if (ABSL_HAVE_ATTRIBUTE(weak) || \
|
||||||
(defined(__GNUC__) && !defined(__clang__))) && \
|
(defined(__GNUC__) && !defined(__clang__))) && \
|
||||||
!(defined(__llvm__) && defined(_WIN32))
|
!(defined(__llvm__) && defined(_WIN32))
|
||||||
|
|
|
@ -113,7 +113,7 @@ inline uint16_t gbswap_16(uint16_t host_int) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // intrinics available
|
#endif // intrinsics available
|
||||||
|
|
||||||
#ifdef ABSL_IS_LITTLE_ENDIAN
|
#ifdef ABSL_IS_LITTLE_ENDIAN
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,7 @@ struct is_function
|
||||||
|
|
||||||
// is_trivially_destructible()
|
// is_trivially_destructible()
|
||||||
//
|
//
|
||||||
// Determines whether the passed type `T` is trivially destructable.
|
// Determines whether the passed type `T` is trivially destructible.
|
||||||
//
|
//
|
||||||
// This metafunction is designed to be a drop-in replacement for the C++11
|
// This metafunction is designed to be a drop-in replacement for the C++11
|
||||||
// `std::is_trivially_destructible()` metafunction for platforms that have
|
// `std::is_trivially_destructible()` metafunction for platforms that have
|
||||||
|
|
|
@ -96,7 +96,7 @@ ABSL_INTERNAL_INLINE_CONSTEXPR(IntervalOpenClosedTag, IntervalOpenClosed, {});
|
||||||
// the return type based on the provided endpoint arguments {A lo, B hi}.
|
// the return type based on the provided endpoint arguments {A lo, B hi}.
|
||||||
// Given these endpoints, one of {A, B} will be chosen as the return type, if
|
// Given these endpoints, one of {A, B} will be chosen as the return type, if
|
||||||
// a type can be implicitly converted into the other in a lossless way. The
|
// a type can be implicitly converted into the other in a lossless way. The
|
||||||
// lack of any such implcit conversion between {A, B} will produce a
|
// lack of any such implicit conversion between {A, B} will produce a
|
||||||
// compile-time error
|
// compile-time error
|
||||||
//
|
//
|
||||||
// See https://en.wikipedia.org/wiki/Uniform_distribution_(continuous)
|
// See https://en.wikipedia.org/wiki/Uniform_distribution_(continuous)
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
// InsertEdge() is very fast when the edge already exists, and reasonably fast
|
// InsertEdge() is very fast when the edge already exists, and reasonably fast
|
||||||
// otherwise.
|
// otherwise.
|
||||||
// FindPath() is linear in the size of the graph.
|
// FindPath() is linear in the size of the graph.
|
||||||
// The current implemenation uses O(|V|+|E|) space.
|
// The current implementation uses O(|V|+|E|) space.
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
|
|
@ -355,7 +355,7 @@ class Waiter::WinHelper {
|
||||||
"ConditionVariableStorage does not have the same "
|
"ConditionVariableStorage does not have the same "
|
||||||
"alignment as CONDITION_VARIABLE");
|
"alignment as CONDITION_VARIABLE");
|
||||||
|
|
||||||
// The SRWLOCK and CONDITION_VARIABLE types must be trivially constuctible
|
// The SRWLOCK and CONDITION_VARIABLE types must be trivially constructible
|
||||||
// and destructible because we never call their constructors or destructors.
|
// and destructible because we never call their constructors or destructors.
|
||||||
static_assert(std::is_trivially_constructible<SRWLOCK>::value,
|
static_assert(std::is_trivially_constructible<SRWLOCK>::value,
|
||||||
"The SRWLOCK type must be trivially constructible");
|
"The SRWLOCK type must be trivially constructible");
|
||||||
|
|
|
@ -247,7 +247,7 @@ struct year_tag : month_tag, cctz::detail::year_tag {};
|
||||||
// int minute()
|
// int minute()
|
||||||
// int second()
|
// int second()
|
||||||
//
|
//
|
||||||
// Recall that fields inferior to the type's aligment will be set to their
|
// Recall that fields inferior to the type's alignment will be set to their
|
||||||
// minimum valid value.
|
// minimum valid value.
|
||||||
//
|
//
|
||||||
// Example:
|
// Example:
|
||||||
|
|
|
@ -182,7 +182,7 @@ ValueType* any_cast(any* operand) noexcept;
|
||||||
// object, when containing a value, must contain a value type; storing a
|
// object, when containing a value, must contain a value type; storing a
|
||||||
// reference type is neither desired nor supported.
|
// reference type is neither desired nor supported.
|
||||||
//
|
//
|
||||||
// An `absl::any` can only store a type that is copy-constructable; move-only
|
// An `absl::any` can only store a type that is copy-constructible; move-only
|
||||||
// types are not allowed within an `any` object.
|
// types are not allowed within an `any` object.
|
||||||
//
|
//
|
||||||
// Example:
|
// Example:
|
||||||
|
@ -190,7 +190,7 @@ ValueType* any_cast(any* operand) noexcept;
|
||||||
// auto a = absl::any(65); // Literal, copyable
|
// auto a = absl::any(65); // Literal, copyable
|
||||||
// auto b = absl::any(std::vector<int>()); // Default-initialized, copyable
|
// auto b = absl::any(std::vector<int>()); // Default-initialized, copyable
|
||||||
// std::unique_ptr<Foo> my_foo;
|
// std::unique_ptr<Foo> my_foo;
|
||||||
// auto c = absl::any(std::move(my_foo)); // Error, not copy-constructable
|
// auto c = absl::any(std::move(my_foo)); // Error, not copy-constructible
|
||||||
//
|
//
|
||||||
// Note that `absl::any` makes use of decayed types (`absl::decay_t` in this
|
// Note that `absl::any` makes use of decayed types (`absl::decay_t` in this
|
||||||
// context) to remove const-volatile qualifiers (known as "cv qualifiers"),
|
// context) to remove const-volatile qualifiers (known as "cv qualifiers"),
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
// should always hold a value of one of its alternative types (except in the
|
// should always hold a value of one of its alternative types (except in the
|
||||||
// "valueless by exception state" -- see below). A default-constructed
|
// "valueless by exception state" -- see below). A default-constructed
|
||||||
// `absl::variant` will hold the value of its first alternative type, provided
|
// `absl::variant` will hold the value of its first alternative type, provided
|
||||||
// it is default-constructable.
|
// it is default-constructible.
|
||||||
//
|
//
|
||||||
// In exceptional cases due to error, an `absl::variant` can hold no
|
// In exceptional cases due to error, an `absl::variant` can hold no
|
||||||
// value (known as a "valueless by exception" state), though this is not the
|
// value (known as a "valueless by exception" state), though this is not the
|
||||||
|
@ -92,7 +92,7 @@ namespace absl {
|
||||||
// // assign it to a std::string.
|
// // assign it to a std::string.
|
||||||
// absl::variant<int, std::string> v = std::string("abc");
|
// absl::variant<int, std::string> v = std::string("abc");
|
||||||
//
|
//
|
||||||
// // A default-contructed variant will hold a value-initialized value of
|
// // A default-constructed variant will hold a value-initialized value of
|
||||||
// // the first alternative type.
|
// // the first alternative type.
|
||||||
// auto a = absl::variant<int, std::string>(); // Holds an int of value '0'.
|
// auto a = absl::variant<int, std::string>(); // Holds an int of value '0'.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue