Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

EliasHasle
Copy link
Contributor

and hence wrong. I hope(!) my updated and consistent description is correct.

@w3cbot
Copy link

w3cbot commented Apr 12, 2023

tidoust marked as non substantive for IPR from ash-nazg.

Copy link
Member

@mehmetoguzderin mehmetoguzderin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I'll leave it to another editor to merge just in case. Thank you!

@github-actions
Copy link
Contributor

github-actions bot commented Apr 12, 2023

Previews, as seen when this build job started (9865c1d):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

wgsl/index.bs Outdated
The loop body will execute five times.
Variable `i` will take on values 0, 1, 2, 3, 4, 5, and variable `twice` will take on values 0, 2, 4, 6, 8.
The loop body will execute six times.
Variable `i` will take on values 0, 1, 2, 3, 4, 5, and variable `twice` will take on values 0, 2, 4, 6, 8, 10.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the loop body executes 6 times, but "Twice" only ever gets to 8.
The i variable is incremented after "twice" is updated.

Copy link
Contributor Author

@EliasHasle EliasHasle Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right! Which means my correction was in fact also incorrect... But the merged PR looks good!

@dneto0 dneto0 enabled auto-merge (squash) April 12, 2023 21:20
@dneto0 dneto0 merged commit f182f01 into gpuweb:main Apr 12, 2023
@EliasHasle EliasHasle deleted the patch-1 branch April 18, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants