[libcxx-commits] [libcxx] [libc++][NFC] Fix typo in comment (PR #173741)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Dec 27 13:16:22 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Eduardo Tachotte (0xEDU)
<details>
<summary>Changes</summary>
Found a typo while reading the `vector` implementation, this PR simply fixes it.
---
Full diff: https://github.com/llvm/llvm-project/pull/173741.diff
1 Files Affected:
- (modified) libcxx/include/__vector/vector.h (+1-1)
``````````diff
diff --git a/libcxx/include/__vector/vector.h b/libcxx/include/__vector/vector.h
index 93358d863492e..2cb3325807a42 100644
--- a/libcxx/include/__vector/vector.h
+++ b/libcxx/include/__vector/vector.h
@@ -114,7 +114,7 @@ class vector {
using reverse_iterator = std::reverse_iterator<iterator>;
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
- // A vector containers the following members which may be trivially relocatable:
+ // A vector contains the following members which may be trivially relocatable:
// - pointer: may be trivially relocatable, so it's checked
// - allocator_type: may be trivially relocatable, so it's checked
// vector doesn't contain any self-references, so it's trivially relocatable if its members are.
``````````
</details>
https://github.com/llvm/llvm-project/pull/173741
More information about the libcxx-commits
mailing list