Skip to content

Commit cae79b5

Browse files
authored
Fix function parameter
As in example above
1 parent 706b1f2 commit cae79b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/11-async/02-promise-basics/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ We can see two things by running the code above:
5858
1. The executor is called automatically and immediately (by the `new Promise`).
5959
2. The executor receives two arguments: `resolve` and `reject` — these functions are pre-defined by the JavaScript engine. So we don't need to create them. Instead, we should write the executor to call them when ready.
6060

61-
After one second of "processing" the executor calls `resolve("done")` to produce the result:
61+
After one second of "processing" the executor calls `resolve("done!")` to produce the result:
6262

6363
![](promise-resolve-1.png)
6464

0 commit comments

Comments
 (0)