Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix syntax error in example in documentation. #1841

Merged
merged 2 commits into from
Feb 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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