Skip to content

Commit 897cb70

Browse files
authored
Q34 comment fix
1 parent 95674b5 commit 897cb70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

challenges/async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ function asyncFunc(data, delay){
12251225
}
12261226
12271227
function* gen() {
1228-
// async function
1228+
// async function calls to yield promise
12291229
const num1 = yield asyncFunc(2, 1000);
12301230
const num2 = yield asyncFunc(1, 2000);
12311231
console.log(num1 + num2); // 3 (2 + 1)

0 commit comments

Comments
 (0)