[libcxx-commits] [libcxx] [libc++][NFC] Fix typo in comment (PR #173741)
Eduardo Tachotte via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Dec 27 13:15:34 PST 2025
https://github.com/0xEDU created https://github.com/llvm/llvm-project/pull/173741
Found a typo while reading the `vector` implementation, this PR simply fixes it.
>From 00564bce700cea6a804c7ed4a2236ce63bcf0b99 Mon Sep 17 00:00:00 2001
From: edu <bfwaend at gmail.com>
Date: Sat, 27 Dec 2025 18:10:14 -0300
Subject: [PATCH] Fix typo in trivially relocatable comment
---
libcxx/include/__vector/vector.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.
More information about the libcxx-commits
mailing list