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

Skip to content

Commit f182f01

Browse files
EliasHasledneto0
andauthored
Description of loop mechanic was inconsistent (gpuweb#4028)
* Description of loop mechanic was inconsistent (and hence wrong) * The "twice" variable will only get to 8 --------- Co-authored-by: David Neto <[email protected]>
1 parent 6a7a294 commit f182f01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wgsl/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4870,8 +4870,8 @@ Consider the following snippet of WGSL:
48704870
}
48714871
</xmp>
48724872
</div>
4873-
The loop body will execute five times.
4874-
Variable `i` will take on values 0, 1, 2, 3, 4, 5, and variable `twice` will take on values 0, 2, 4, 6, 8.
4873+
The loop body will execute six times.
4874+
Variable `i` will take on values 0, 1, 2, 3, 4, 5, and variable `twice` will take on values 0, 2, 4, 6, and 8.
48754875

48764876
Consider the following snippet of WGSL:
48774877
<div class='example wgsl function-scope' heading='Reading a variable multiple times'>

0 commit comments

Comments
 (0)