Skip to content

Commit 93435fd

Browse files
authored
Merge pull request #980 from BretHudson/2.0-fix-glsl-for-loop
[beta.p5js.org] Typo: Switch "let" to "int" to make GLSL code valid
2 parents 2ce6dbb + 76dc73e commit 93435fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/tutorials/en/intro-to-glsl.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ int maxVal = 10;
287287
if (something) {
288288
  maxVal = 20;
289289
}
290-
for (let i = 0; i < 20; i++) {
290+
for (int i = 0; i < 20; i++) {
291291
  if (i == maxVal) {
292292
    break;
293293
  }

0 commit comments

Comments
 (0)