Merge pull request #2157 from ZYinMD/patch-3

correct minor typo
This commit is contained in:
Ilya Kantor 2020-10-07 21:29:22 +03:00 committed by GitHub
commit 77e2deea82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,7 +155,7 @@ Now let's recall generators, as they allow to make iteration code much shorter.
For sheer simplicity, omitting some important stuff, they are "functions that generate (yield) values". They are explained in detail in the chapter [](info:generators).
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.
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.
This example generates a sequence of values from `start` to `end`: