[libcxx-commits] [libcxx] fe4cd10 - [libc++][NFC] Fix typo in concept PSTL concept check

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 12 09:31:17 PDT 2024


Author: Louis Dionne
Date: 2024-06-12T12:31:05-04:00
New Revision: fe4cd104a8dbac4f09ff1f930909381dfa789bc7

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

LOG: [libc++][NFC] Fix typo in concept PSTL concept check

Added: 
    

Modified: 
    libcxx/include/__algorithm/pstl.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__algorithm/pstl.h b/libcxx/include/__algorithm/pstl.h
index 8f9b1b124c3b5..66ddf4360c827 100644
--- a/libcxx/include/__algorithm/pstl.h
+++ b/libcxx/include/__algorithm/pstl.h
@@ -247,7 +247,7 @@ template <class _ExecutionPolicy,
           enable_if_t<is_execution_policy_v<_RawPolicy>, int> = 0>
 _LIBCPP_HIDE_FROM_ABI void
 fill_n(_ExecutionPolicy&& __policy, _ForwardIterator __first, _Size __n, const _Tp& __value) {
-  _LIBCPP_REQUIRE_CPP17_FORWARD_ITERATOR(_ForwardIterator, "fill_n requires ForwardIterators");
+  _LIBCPP_REQUIRE_CPP17_FORWARD_ITERATOR(_ForwardIterator, "fill_n requires a ForwardIterator");
   using _Implementation = __pstl::__dispatch<__pstl::__fill_n, __pstl::__current_configuration, _RawPolicy>;
   __pstl::__handle_exception<_Implementation>(
       std::forward<_ExecutionPolicy>(__policy), std::move(__first), std::move(__n), __value);


        


More information about the libcxx-commits mailing list