@@ -143,7 +143,7 @@ class any final
143143 if (this ->vtable != nullptr )
144144 {
145145 this ->vtable ->move (this ->storage , rhs.storage );
146- // this->vtable = nullptr; -- uneeded , see below
146+ // this->vtable = nullptr; -- unneeded , see below
147147 }
148148
149149 // move from tmp (previously rhs) to *this.
@@ -174,7 +174,7 @@ class any final
174174 // / Base VTable specification.
175175 struct vtable_type
176176 {
177- // Note: The caller is responssible for doing .vtable = nullptr after destructful operations
177+ // Note: The caller is responsible for doing .vtable = nullptr after destructive operations
178178 // such as destroy() and/or move().
179179
180180 // / The type of the object this vtable is for.
@@ -184,11 +184,11 @@ class any final
184184 // / The state of the union after this call is unspecified, caller must ensure not to use src anymore.
185185 void (*destroy)(storage_union&) noexcept ;
186186
187- // / Copies the **inner** content of the src union into the yet unitialized dest union.
187+ // / Copies the **inner** content of the src union into the yet uninitialized dest union.
188188 // / As such, both inner objects will have the same state, but on separate memory locations.
189189 void (*copy)(const storage_union& src, storage_union& dest);
190190
191- // / Moves the storage from src to the yet unitialized dest union.
191+ // / Moves the storage from src to the yet uninitialized dest union.
192192 // / The state of src after this call is unspecified, caller must ensure not to use src anymore.
193193 void (*move)(storage_union& src, storage_union& dest) noexcept ;
194194
@@ -224,7 +224,7 @@ class any final
224224
225225 static void swap (storage_union& lhs, storage_union& rhs) noexcept
226226 {
227- // just exchage the storage pointers.
227+ // just exchange the storage pointers.
228228 std::swap (lhs.dynamic , rhs.dynamic );
229229 }
230230 };
0 commit comments