Skip to content

Commit 464e293

Browse files
committed
Minor typo fix, adding in back to table of contents links
1 parent 6fcc2a7 commit 464e293

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ var value = generator.next();
993993
> console.log(value); // { value: 4, done: false }
994994
```
995995

996-
Where the [next](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/next)
996+
Where [next](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/next)
997997
will allow us to push our generator forward and evaluate a new expression. While the above example is extremely
998998
contrived, we can utilize Generators to write asynchronous code in a synchronous manner:
999999

@@ -1065,6 +1065,8 @@ and Promises allow us to write asynchronous code in a synchronous manner while r
10651065
errors in a nice way, we can actually begin to utilize a simpler construction that provides the same benefits:
10661066
[async-await](https://github.com/DrkSephy/es6-cheatsheet#async-await).
10671067

1068+
<sup>[(back to table of contents)](#table-of-contents)</sup>
1069+
10681070
## Async Await
10691071

10701072
While this is actually an upcoming ES2016 feature, `async await` allows us to perform the same thing we accomplished
@@ -1089,5 +1091,7 @@ async function main() {
10891091
main();
10901092
```
10911093

1092-
Under the hood, it performs similarly to Generators. I highly recommend giving it a try, A great resource
1093-
for getting up and running with ES7 and Babel can be found [here](http://masnun.com/2015/11/11/using-es7-asyncawait-today-with-babel.html).
1094+
Under the hood, it performs similarly to Generators. I highly recommend using them over Generators + Promises. A great resource
1095+
for getting up and running with ES7 and Babel can be found [here](http://masnun.com/2015/11/11/using-es7-asyncawait-today-with-babel.html).
1096+
1097+
<sup>[(back to table of contents)](#table-of-contents)</sup>

0 commit comments

Comments
 (0)