[libcxx-commits] [libcxx] f4ec54b - Fix typo "__is_parititioned_impl" to "__is_partitioned_impl"

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jul 2 07:56:45 PDT 2023


Author: Amirreza Ashouri
Date: 2023-07-02T16:56:32+02:00
New Revision: f4ec54b51b2aa6cb5db046504a8d5a517958e457

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

LOG: Fix typo "__is_parititioned_impl" to "__is_partitioned_impl"

A typo has been fixed

Reviewed By: #libc, Mordante

Differential Revision: https://reviews.llvm.org/D154296

Added: 
    

Modified: 
    libcxx/include/__algorithm/ranges_is_partitioned.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__algorithm/ranges_is_partitioned.h b/libcxx/include/__algorithm/ranges_is_partitioned.h
index f81c9c311a5b50..76db870efc7073 100644
--- a/libcxx/include/__algorithm/ranges_is_partitioned.h
+++ b/libcxx/include/__algorithm/ranges_is_partitioned.h
@@ -32,7 +32,7 @@ namespace __is_partitioned {
 struct __fn {
   template <class _Iter, class _Sent, class _Proj, class _Pred>
   _LIBCPP_HIDE_FROM_ABI constexpr static bool
-  __is_parititioned_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) {
+  __is_partitioned_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) {
     for (; __first != __last; ++__first) {
       if (!std::invoke(__pred, std::invoke(__proj, *__first)))
         break;
@@ -56,7 +56,7 @@ struct __fn {
             indirect_unary_predicate<projected<_Iter, _Proj>> _Pred>
   _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr bool
   operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const {
-    return __is_parititioned_impl(std::move(__first), std::move(__last), __pred, __proj);
+    return __is_partitioned_impl(std::move(__first), std::move(__last), __pred, __proj);
   }
 
   template <input_range _Range,
@@ -64,7 +64,7 @@ struct __fn {
             indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred>
   _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr bool
   operator()(_Range&& __range, _Pred __pred, _Proj __proj = {}) const {
-    return __is_parititioned_impl(ranges::begin(__range), ranges::end(__range), __pred, __proj);
+    return __is_partitioned_impl(ranges::begin(__range), ranges::end(__range), __pred, __proj);
   }
 };
 } // namespace __is_partitioned


        


More information about the libcxx-commits mailing list