Fix syntax error in example in documentation. by Eren121 · Pull Request #1841 · NVIDIA/thrust · GitHub
Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Fix syntax error in example in documentation. - #1841

Merged
miscco merged 2 commits into
NVIDIA:mainfrom
Eren121:patch-1
Feb 21, 2023
Merged

miscco merged 2 commits into
NVIDIA:mainfrom
Eren121:patch-1

Conversation

@Eren121

@Eren121 Eren121 commented Dec 27, 2022

Copy link
Copy Markdown
Contributor

Example was not syntaxically correct:

int vec(3);
vec[0] = 0; vec[1] = 1; vec[2] = 2;
thrust::for_each(thrust::host, vec.begin(), vec.end(), printf_functor());

This didn't compile.
@GPUtester

Copy link
Copy Markdown
Collaborator

@Eren121 Eren121 changed the title Fix example in documentation Fix syntax error in example in documentation. Dec 27, 2022
Comment thread thrust/execution_policy.h Outdated
@miscco
miscco merged commit 3b3ed80 into NVIDIA:main Feb 21, 2023
@miscco

miscco commented Feb 21, 2023

Copy link
Copy Markdown
Collaborator

github-actions Bot pushed a commit that referenced this pull request Feb 21, 2023
…1841)

* Fix example in documentation

---------

Co-authored-by: Michael Schellenberger Costa <miscco@nvidia.com> 3b3ed80
@alliepiper alliepiper added this to the 2.1.0 milestone Mar 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants