Skip to content

Commit 8de9aca

Browse files
authored
Merge pull request #355 from saito314/saito-fixtypo-02
fix: typo
2 parents 2fa2e65 + e0b4e6c commit 8de9aca

File tree

1 file changed

+2
-2
lines changed
  • 1-js/12-generators-iterators/2-async-iterators-generators

1 file changed

+2
-2
lines changed

1-js/12-generators-iterators/2-async-iterators-generators/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ let range = {
9696
*/!*
9797

9898
*!*
99-
// asyc next の中で、 "await" が使えます
99+
// async next の中で、 "await" が使えます
100100
await new Promise(resolve => setTimeout(resolve, 1000)); // (3)
101101
*/!*
102102

@@ -250,7 +250,7 @@ for(let value of range) {
250250
````smart header="内部的な違い"
251251
技術的には、ジェネレータの詳細を覚えている読者であれば、内部的な違いに気づくかもしれません。
252252
253-
非同期ジェネレータの場合、`generator.nex()` メソッドは非同期であり、promise を返します。
253+
非同期ジェネレータの場合、`generator.next()` メソッドは非同期であり、promise を返します。
254254
255255
通常のジェネレータでは、`result = generator.next()` を使用して値を取得します。非同期ジェネレータでは、次のように `await` を追加する必要があります:
256256

0 commit comments

Comments
 (0)