From 2ae0e37f5aa497939686eead4d9bcd5faae13eae Mon Sep 17 00:00:00 2001 From: Nathan Bell Date: Thu, 15 Apr 2010 12:21:52 -0400 Subject: [PATCH] fixed none_of documentation resolves issue #123 --- thrust/logical.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/thrust/logical.h b/thrust/logical.h index cf807f99b..743ee0237 100644 --- a/thrust/logical.h +++ b/thrust/logical.h @@ -124,13 +124,13 @@ bool any_of(InputIterator first, InputIterator last, Predicate pred); * ... * bool A[3] = {true, true, false}; * - * thrust::any_of(A, A + 2, thrust::identity()); // returns false - * thrust::any_of(A, A + 3, thrust::identity()); // returns false + * thrust::none_of(A, A + 2, thrust::identity()); // returns false + * thrust::none_of(A, A + 3, thrust::identity()); // returns false * - * thrust::any_of(A + 2, A + 3, thrust::identity()); // returns true + * thrust::none_of(A + 2, A + 3, thrust::identity()); // returns true * * // empty range - * thrust::any_of(A, A, thrust::identity()); // returns true + * thrust::none_of(A, A, thrust::identity()); // returns true * \endcode * * \see all_of