summaryrefslogtreecommitdiff
path: root/absl/types
diff options
context:
space:
mode:
authorGravatar Sungmann Cho <55860394+chosungmann@users.noreply.github.com>2019-10-01 03:24:41 +0900
committerGravatar CJ Johnson <6013273+CJ-Johnson@users.noreply.github.com>2019-09-30 14:24:41 -0400
commit882b3501a31eb0e4ae4213afb91a0e43feda7d5f (patch)
treecc257cb301293a927a3611103cc18f14c61ccc9a /absl/types
parent502efe6d7841bff82b1aeef5500491fe9a48c635 (diff)
Fix spelling errors (#384)
aligment -> alignment constructable -> constructible constuctible -> constructible contructed -> constructed destructable -> destructible futher -> further implcit -> implicit implemenation -> implementation intrinics -> intrinsics
Diffstat (limited to 'absl/types')
-rw-r--r--absl/types/any.h4
-rw-r--r--absl/types/variant.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/absl/types/any.h b/absl/types/any.h
index d2e2533f..507c8b2c 100644
--- a/absl/types/any.h
+++ b/absl/types/any.h
@@ -182,7 +182,7 @@ ValueType* any_cast(any* operand) noexcept;
// object, when containing a value, must contain a value type; storing a
// 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.
//
// Example:
@@ -190,7 +190,7 @@ ValueType* any_cast(any* operand) noexcept;
// auto a = absl::any(65); // Literal, copyable
// auto b = absl::any(std::vector<int>()); // Default-initialized, copyable
// 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
// context) to remove const-volatile qualifiers (known as "cv qualifiers"),
diff --git a/absl/types/variant.h b/absl/types/variant.h
index ebd52d28..7ef7f88c 100644
--- a/absl/types/variant.h
+++ b/absl/types/variant.h
@@ -24,7 +24,7 @@
// should always hold a value of one of its alternative types (except in the
// "valueless by exception state" -- see below). A default-constructed
// `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
// 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.
// 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.
// auto a = absl::variant<int, std::string>(); // Holds an int of value '0'.
//