Fix grammar and phrasing

This commit is contained in:
Stanislav (Stanley) Modrak 2022-06-16 17:38:32 +01:00 committed by GitHub
parent c3b904def3
commit 556bd7ff38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,7 +237,7 @@ new Promise((resolve, reject) => {
That said, `finally(f)` isn't exactly an alias of `then(f,f)` though. There are few subtle differences: That said, `finally(f)` isn't exactly an alias of `then(f,f)` though. There are few subtle differences:
1. A `finally` handler has no arguments. In `finally` we don't know whether the promise is successful or not. That's all right, as our task is usually to perform "general" finalizing procedures. 1. A `finally` handler has no arguments. In `finally` we don't know whether the promise is successful or not. That's all right, as our task is usually to perform "general" finalizing procedures.
2. A `finally` handler passes through results and errors to the next handler. 2. A `finally` handler "passes" the result or error further to subsequent handlers.
For instance, here the result is passed through `finally` to `then`: For instance, here the result is passed through `finally` to `then`:
```js run ```js run