Skip to content

Commit 2c65914

Browse files
authored
correct minor typo
1 parent f489145 commit 2c65914

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Now let's recall generators, as they allow to make iteration code much shorter.
155155
156156
For sheer simplicity, omitting some important stuff, they are "functions that generate (yield) values". They are explained in detail in the chapter [](info:generators).
157157
158-
Generators are labelled with `function*` (note the start) and use `yield` to generate a value, then we can use `for..of` to loop over them.
158+
Generators are labelled with `function*` (note the star) and use `yield` to generate a value, then we can use `for..of` to loop over them.
159159
160160
This example generates a sequence of values from `start` to `end`:
161161

0 commit comments

Comments
 (0)