On 13/10/20 19:23 +0100, Nuno Lopes via Libstdc++ wrote:
Hi,There's a typo in the comment of any_of in stl_algo.h. Here's a trivial patch: --- stl_algo.h.old 2020-10-13 19:16:48.836304600 +0100 +++ stl_algo.h 2020-10-13 19:17:27.357511100 +0100 @@ -471,7 +471,7 @@ { return __last == _GLIBCXX_STD_A::find_if(__first, __last, __pred); } /** - * @brief Checks that a predicate is false for at least an element + * @brief Checks that a predicate is true for at least an element * of a sequence. * @ingroup non_mutating_algorithms * @param __first An input iterator.
Thanks, applied to trunk. I also changed "an element" to "one element".
commit 5204cc561a8d3c1a671969715ceb507ece8edef7 Author: Nuno Lopes <[email protected]> Date: Tue Oct 13 20:21:55 2020 libstdc++: Fix doxygen comment for std::any_of libstdc++-v3/ChangeLog: * include/bits/stl_algo.h (any_of): Fix incorrect description in comment. diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h index 2478b5857c1..621c6331422 100644 --- a/libstdc++-v3/include/bits/stl_algo.h +++ b/libstdc++-v3/include/bits/stl_algo.h @@ -471,7 +471,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { return __last == _GLIBCXX_STD_A::find_if(__first, __last, __pred); } /** - * @brief Checks that a predicate is false for at least an element + * @brief Checks that a predicate is true for at least one element * of a sequence. * @ingroup non_mutating_algorithms * @param __first An input iterator.
