diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2018-04-20 01:11:44 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2018-04-20 01:11:44 +0700 |
commit | 08760addbe9732d8ee889328229781313baf6e96 (patch) | |
tree | 2bc864ece816fdebc00b124741a01472b764b55f | |
parent | 5b535401665cc6aa96d54a5c9b0901153d97210f (diff) |
Fix some typos.
-rw-r--r-- | absl/algorithm/container.h | 2 | ||||
-rw-r--r-- | absl/base/casts.h | 2 | ||||
-rw-r--r-- | absl/base/config.h | 2 | ||||
-rw-r--r-- | absl/container/inlined_vector.h | 2 | ||||
-rw-r--r-- | absl/meta/type_traits.h | 6 | ||||
-rw-r--r-- | absl/strings/ascii.h | 4 | ||||
-rw-r--r-- | absl/types/any.h | 10 | ||||
-rw-r--r-- | absl/types/span.h | 2 |
8 files changed, 15 insertions, 15 deletions
diff --git a/absl/algorithm/container.h b/absl/algorithm/container.h index 8d0d4035..ebe32445 100644 --- a/absl/algorithm/container.h +++ b/absl/algorithm/container.h @@ -1578,7 +1578,7 @@ decay_t<T> c_inner_product(const Sequence1& factors1, const Sequence2& factors2, } // Overload of c_inner_product() for using binary operations other than -// `operator+` (for computing the accumlation) and `operator*` (for computing +// `operator+` (for computing the accumulation) and `operator*` (for computing // the product between the two container's element pair). template <typename Sequence1, typename Sequence2, typename T, typename BinaryOp1, typename BinaryOp2> diff --git a/absl/base/casts.h b/absl/base/casts.h index 3096d4c1..8bd5264d 100644 --- a/absl/base/casts.h +++ b/absl/base/casts.h @@ -123,7 +123,7 @@ inline To implicit_cast(typename absl::internal::identity_t<To> to) { // // Such casting results in type punning: holding an object in memory of one type // and reading its bits back using a different type. A `bit_cast()` avoids this -// issue by implementating its casts using `memcpy()`, which avoids introducing +// issue by implementing its casts using `memcpy()`, which avoids introducing // this undefined behavior. template <typename Dest, typename Source> inline Dest bit_cast(const Source& source) { diff --git a/absl/base/config.h b/absl/base/config.h index 500bc8c8..93855957 100644 --- a/absl/base/config.h +++ b/absl/base/config.h @@ -299,7 +299,7 @@ // family of functions as standardized in POSIX.1-2001. // // Note: While Apple provides <semaphore.h> for both iOS and macOS, it is -// explicity deprecated and will cause build failures if enabled for those +// explicitly deprecated and will cause build failures if enabled for those // platforms. We side-step the issue by not defining it here for Apple // platforms. #ifdef ABSL_HAVE_SEMAPHORE_H diff --git a/absl/container/inlined_vector.h b/absl/container/inlined_vector.h index cb36dc75..78f78ea7 100644 --- a/absl/container/inlined_vector.h +++ b/absl/container/inlined_vector.h @@ -549,7 +549,7 @@ class InlinedVector { } // Overload of InlinedVector::erase() for erasing all elements in the - // iteraror range [first, last) in the inlined vector, returning an iterator + // iterator range [first, last) in the inlined vector, returning an iterator // pointing to the first element following the range erased, or the // container's end if range included the container's last element. iterator erase(const_iterator first, const_iterator last); diff --git a/absl/meta/type_traits.h b/absl/meta/type_traits.h index ac5d8e1c..73a5685b 100644 --- a/absl/meta/type_traits.h +++ b/absl/meta/type_traits.h @@ -72,7 +72,7 @@ struct default_alignment_of_aligned_storage<Len, // `std::void_t` metafunction. // // NOTE: `absl::void_t` does not use the standard-specified implementation so -// that it can remain compatibile with gcc < 5.1. This can introduce slightly +// that it can remain compatible with gcc < 5.1. This can introduce slightly // different behavior, such as when ordering partial specializations. template <typename... Ts> using void_t = typename type_traits_internal::VoidTImpl<Ts...>::type; @@ -193,7 +193,7 @@ struct is_trivially_destructible // LWG issue 2116: http://cplusplus.github.io/LWG/lwg-active.html#2116. // // "T obj();" need to be well-formed and not call any nontrivial operation. -// Nontrivally destructible types will cause the expression to be nontrivial. +// Nontrivially destructible types will cause the expression to be nontrivial. template <typename T> struct is_trivially_default_constructible : std::integral_constant<bool, __has_trivial_constructor(T) && @@ -224,7 +224,7 @@ struct is_trivially_default_constructible // implementation. // // NOTE: `T obj(declval<const T&>());` needs to be well-formed and not call any -// nontrivial operation. Nontrivally destructible types will cause the +// nontrivial operation. Nontrivially destructible types will cause the // expression to be nontrivial. template <typename T> struct is_trivially_copy_constructible diff --git a/absl/strings/ascii.h b/absl/strings/ascii.h index fc2bb33e..96a64541 100644 --- a/absl/strings/ascii.h +++ b/absl/strings/ascii.h @@ -34,7 +34,7 @@ // `ascii_iscntrl()`, `ascii_isdigit()`, `ascii_isgraph()`, `ascii_islower()`, // `ascii_isprint()`, `ascii_ispunct()`, `ascii_isspace()`, `ascii_isupper()`, // `ascii_isxdigit()` -// Analagous to the <ctype.h> functions with similar names, these +// Analogous to the <ctype.h> functions with similar names, these // functions take an unsigned char and return a bool, based on whether the // character matches the condition specified. // @@ -42,7 +42,7 @@ // functions return `false`. // // `ascii_tolower()`, `ascii_toupper()` -// Analagous to the <ctype.h> functions with similar names, these functions +// Analogous to the <ctype.h> functions with similar names, these functions // take an unsigned char and return a char. // // If the input character is not an ASCII {lower,upper}-case letter (including diff --git a/absl/types/any.h b/absl/types/any.h index 760a160e..346c44aa 100644 --- a/absl/types/any.h +++ b/absl/types/any.h @@ -191,13 +191,13 @@ ValueType* any_cast(any* operand) noexcept; // auto c = absl::any(std::move(my_foo)); // Error, not copy-constructable // // Note that `absl::any` makes use of decayed types (`absl::decay_t` in this -// context) to remove const-volative qualifiers (known as "cv qualifiers"), +// context) to remove const-volatile qualifiers (known as "cv qualifiers"), // decay functions to function pointers, etc. We essentially "decay" a given // type into its essential type. // -// `absl::any` makes use of decayed types when determing the basic type `T` of +// `absl::any` makes use of decayed types when determining the basic type `T` of // the value to store in the any's contained object. In the documentation below, -// we explcitly denote this by using the phrase "a decayed type of `T`". +// we explicitly denote this by using the phrase "a decayed type of `T`". // // Example: // @@ -322,7 +322,7 @@ class any { // Overload of `any::emplace()` to emplace a value within an `absl::any` // object by calling `any::reset()`, initializing the contained value as if // direct-non-list-initializing an object of type `VT` with the arguments - // `initilizer_list, std::forward<Args>(args)...`, and returning a reference + // `initializer_list, std::forward<Args>(args)...`, and returning a reference // to the new contained value. // // Note: If an exception is thrown during the call to `VT`'s constructor, @@ -354,7 +354,7 @@ class any { // Swaps the passed value and the value of this `absl::any` object. void swap(any& other) noexcept { obj_.swap(other.obj_); } - // Observors + // Observers // any::has_value() // diff --git a/absl/types/span.h b/absl/types/span.h index 6ba46685..d365f17d 100644 --- a/absl/types/span.h +++ b/absl/types/span.h @@ -224,7 +224,7 @@ using EnableIfConvertibleToSpanConst = // point to remains alive, must also ensure that such memory does not get // reallocated. Therefore, to avoid undefined behavior, containers with // associated span views should not invoke operations that may reallocate memory -// (such as resizing) or invalidate iterarors into the container. +// (such as resizing) or invalidate iterators into the container. // // One common use for a `Span` is when passing arguments to a routine that can // accept a variety of array types (e.g. a `std::vector`, `absl::InlinedVector`, |