diff options
author | Jonathan Cohen <cohenjon@google.com> | 2018-04-20T21·02-0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20T21·02-0400 |
commit | 94ce52d46c171683b1ee22d14277a6d3bdfd7c4c (patch) | |
tree | fd22052ad9405ebe67a92a9bd66a4201c07e3dcc /absl/types | |
parent | faf0a1b90374eab44e8956973b0e13febdcf3377 (diff) | |
parent | 08760addbe9732d8ee889328229781313baf6e96 (diff) |
Merge pull request #101 from waywardmonkeys/fix-typos
Fix some typos.
Diffstat (limited to 'absl/types')
-rw-r--r-- | absl/types/any.h | 10 | ||||
-rw-r--r-- | absl/types/span.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/absl/types/any.h b/absl/types/any.h index 68bc288bd5dd..a973c6dab7e6 100644 --- a/absl/types/any.h +++ b/absl/types/any.h @@ -193,13 +193,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: // @@ -324,7 +324,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, @@ -356,7 +356,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 6ba466850456..d365f17d5219 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`, |