Skip to content

Commit c263903

Browse files
authored
Merge pull request #7422 from andrewmcwhae/main
Fixed loop variable in createFileInput() docs (dom.js)
2 parents 360598a + 5c0da01 commit c263903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dom/dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ p5.prototype.createInput = function (value = '', type = 'text') {
20232023
* let y = i * 20;
20242024
*
20252025
* // Draw the image.
2026-
* image(img, 0, y, 100, 100);
2026+
* image(images[i], 0, y, 100, 100);
20272027
* }
20282028
*
20292029
* describe('A gray square with a file input beneath it. If the user selects multiple image files to load, they are displayed on the square.');

0 commit comments

Comments
 (0)