Skip to content

Commit

Permalink
Fix syntax error in example in documentation. (NVIDIA#1841)
Browse files Browse the repository at this point in the history
* Fix example in documentation

---------

Co-authored-by: Michael Schellenberger Costa <[email protected]>
  • Loading branch information
Eren121 and miscco authored Feb 21, 2023
1 parent 29305f6 commit 3b3ed80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions thrust/execution_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,9 @@ template<typename DerivedPolicy>
* }
* };
* ...
* int vec(3);
* vec[0] = 0; vec[1] = 1; vec[2] = 2;
* int vec[] = { 0, 1, 2 };
*
* thrust::for_each(thrust::host, vec.begin(), vec.end(), printf_functor());
* thrust::for_each(thrust::host, vec, vec + 3, printf_functor());
*
* // 0 1 2 is printed to standard output in some unspecified order
* \endcode
Expand Down

0 comments on commit 3b3ed80

Please sign in to comment.