Skip to content

Commit 7fa1bf7

Browse files
authored
Merge pull request #880 from vasilevx/patch-1
Fix function parameter
2 parents 8925505 + cae79b5 commit 7fa1bf7

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)