correct minor typo

This commit is contained in:
Zhi Yin 2020-09-27 16:13:21 -04:00 committed by GitHub
parent f489145731
commit 2c65914e3b
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`: