Skip to content

Commit 0b28614

Browse files
[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
1 parent 1f53cc0 commit 0b28614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__memory/pointer_traits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ concept __resettable_smart_pointer_with_args = requires(_Smart __s, _Pointer __p
255255
// This function ensures safe conversions between fancy pointers at compile-time, where we avoid casts from/to
256256
// `__void_pointer` by obtaining the underlying raw pointer from the fancy pointer using `std::to_address`,
257257
// then dereferencing it to retrieve the pointed-to object, and finally constructing the target fancy pointer
258-
// to that object using the `std::pointer_traits<>::pinter_to` function.
258+
// to that object using the `std::pointer_traits<>::pointer_to` function.
259259
template <class _PtrTo, class _PtrFrom>
260260
_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI _PtrTo __static_fancy_pointer_cast(const _PtrFrom& __p) {
261261
using __ptr_traits = pointer_traits<_PtrTo>;

0 commit comments

Comments
 (0)