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

Conversation

Eren121
Copy link
Contributor

@Eren121 Eren121 commented Dec 27, 2022

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
Collaborator

Can one of the admins verify this patch?

Admins can comment ok to test to allow this one PR to run or add to allowlist to allow all future PRs from the same author to run.

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

miscco commented Feb 21, 2023

Thank a lot for finding and fixing the invalid documentation.

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 <[email protected]> 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