Skip to content

Commit 76bf50e

Browse files
authored
fixed misspelling
1 parent eef9238 commit 76bf50e

File tree

1 file changed

+2
-2
lines changed
  • src/content/examples/en/16_Parallel_Loading_Promise/00_Async_Image_Loader

1 file changed

+2
-2
lines changed

src/content/examples/en/16_Parallel_Loading_Promise/00_Async_Image_Loader/code.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function setup() {
1818
textSize(18);
1919

2020
// Use async/await with Promise.all to load all three images at once
21-
// This waits untill ALL images are loaded before continuing
21+
// This waits until ALL images are loaded before continuing
2222
[img1, img2, img3] = await Promise.all([
2323
loadImageAsync('https://picsum.photos/100/100?random=1'), // Replace the image links with user wanted images.
2424
loadImageAsync('https://picsum.photos/100/100?random=2'),
@@ -43,4 +43,4 @@ function loadImageAsync(url) {
4343
//If successful, resolve the promise with the image. If it fails, reject with the error.
4444
loadImage(url, img => resolve(img), err => reject(err));
4545
});
46-
}
46+
}

0 commit comments

Comments
 (0)