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

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 10 02:55:04 PDT 2025


Author: Vinay Deshmukh
Date: 2025-09-10T11:55:00+02:00
New Revision: 0b28614f32bfcfd075a46fe55671358dde5ac4e9

URL: https://github.com/llvm/llvm-project/commit/0b28614f32bfcfd075a46fe55671358dde5ac4e9
DIFF: https://github.com/llvm/llvm-project/commit/0b28614f32bfcfd075a46fe55671358dde5ac4e9.diff

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

* Apply the typo fix as a separate NFC patch from here:
https://github.com/llvm/llvm-project/pull/134330/files#r2313015079

Added: 
    

Modified: 
    libcxx/include/__memory/pointer_traits.h

Removed: 
    


################################################################################
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>;


        


More information about the libcxx-commits mailing list