[libcxx-commits] [libcxx] [NFC][libc++] Fix typo in `libcxx/include/__memory/pointer_traits.h` (PR #157304)

Vinay Deshmukh via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 9 03:03:12 PDT 2025


https://github.com/vinay-deshmukh updated https://github.com/llvm/llvm-project/pull/157304

>From b522466387ac7e18c6fcb1ceae3e199a7c483714 Mon Sep 17 00:00:00 2001
From: Vinay Deshmukh <32487576+vinay-deshmukh at users.noreply.github.com>
Date: Sat, 6 Sep 2025 15:45:20 -0400
Subject: [PATCH 1/2] [NFC] Fix typo in
 `libcxx/include/__memory/pointer_traits.h`

---
 libcxx/include/__memory/pointer_traits.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/include/__memory/pointer_traits.h b/libcxx/include/__memory/pointer_traits.h
index 8c7f8dff1b76b..62fcd93263b02 100644
--- a/libcxx/include/__memory/pointer_traits.h
+++ b/libcxx/include/__memory/pointer_traits.h
@@ -255,7 +255,7 @@ concept __resettable_smart_pointer_with_args = requires(_Smart __s, _Pointer __p
 // This function ensures safe conversions between fancy pointers at compile-time, where we avoid casts from/to
 // `__void_pointer` by obtaining the underlying raw pointer from the fancy pointer using `std::to_address`,
 // then dereferencing it to retrieve the pointed-to object, and finally constructing the target fancy pointer
-// to that object using the `std::pointer_traits<>::pinter_to` function.
+// to that object using the `std::pointer_traits<>::pointer_to` function.
 template <class _PtrTo, class _PtrFrom>
 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI _PtrTo __static_fancy_pointer_cast(const _PtrFrom& __p) {
   using __ptr_traits   = pointer_traits<_PtrTo>;

>From b203d6cf6fa6e82c3c4faf66d36df20ce5fd99d6 Mon Sep 17 00:00:00 2001
From: Vinay Deshmukh <vinay_deshmukh at outlook.com>
Date: Tue, 9 Sep 2025 06:01:09 -0400
Subject: [PATCH 2/2] Empty commit




More information about the libcxx-commits mailing list