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 1 commit
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
4 changes: 2 additions & 2 deletions thrust/execution_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ template<typename DerivedPolicy>
* }
* };
* ...
* int vec(3);
* int vec[3];
* vec[0] = 0; vec[1] = 1; vec[2] = 2;
miscco marked this conversation as resolved.
Show resolved Hide resolved
*
* 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