Skip to content

Commit

Permalink
fix: fix a typo in Part 2 (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Nurali Khoja <[email protected]>
  • Loading branch information
TheCoderFish and nuralikhoja authored Sep 4, 2021
1 parent 6b81d1d commit 41ce534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ document.getElementById('test').addEventListener('click', (event) => {

This event listener is producing a stream of values, values emitted over time at each user click, and this stream virtually never completes.

When we will want to deal with other operations, we will have to nest the next calls in each callback function. Not only will it become had to read, but the error handling will be very complicated if not impossible. In addition, we will have to work with streams of data that never complete (like the click event) and some that do complete (like a timeout or an Ajax call).
When we will want to deal with other operations, we will have to nest the next calls in each callback function. Not only will it become hard to read, but the error handling will be very complicated if not impossible. In addition, we will have to work with streams of data that never complete (like the click event) and some that do complete (like a timeout or an Ajax call).

```js
document.getElementById('test').addEventListener('click', (event) => {
Expand Down

0 comments on commit 41ce534

Please sign in to comment.