Skip to content

Commit 08cfb2a

Browse files
johnmckay-rewardmarijnh
authored andcommitted
Fixed typo in chapter 11 async
1 parent c9647ca commit 08cfb2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

11_async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The function returns the result of this chain of `then` calls. The initial promi
159159

160160
In this code, the functions used in the first two `then` calls return a regular value, which will immediately be passed into the promise returned by `then` when the function returns. The last one returns a promise (`textFile(filename)`), making it an actual asynchronous step.
161161

162-
Tt would have also been possible to do all these steps inside a single `then` callback, since only the last step is actually asynchronous. But the kind of `then` wrappers that only do some synchronous data transformation are often useful, for example when you want to return a promise that produces a processed version of some asynchronous result.
162+
It would have also been possible to do all these steps inside a single `then` callback, since only the last step is actually asynchronous. But the kind of `then` wrappers that only do some synchronous data transformation are often useful, for example when you want to return a promise that produces a processed version of some asynchronous result.
163163

164164
```
165165
function jsonFile(filename) {

0 commit comments

Comments
 (0)