Skip to content

Commit 1edb0a3

Browse files
authored
Merge pull request #3147 from zaks276/patch-1
2 parents 72aa4f0 + d738e31 commit 1edb0a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/11-async/02-promise-basics/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ So to summarize: the executor runs automatically and attempts to perform a job.
3636
The `promise` object returned by the `new Promise` constructor has these internal properties:
3737

3838
- `state` — initially `"pending"`, then changes to either `"fulfilled"` when `resolve` is called or `"rejected"` when `reject` is called.
39-
- `result` — initially `undefined`, then changes to `value` when `resolve(value)` called or `error` when `reject(error)` is called.
39+
- `result` — initially `undefined`, then changes to `value` when `resolve(value)` is called or `error` when `reject(error)` is called.
4040

4141
So the executor eventually moves `promise` to one of these states:
4242

@@ -281,7 +281,7 @@ To summarize:
281281
- If a `finally` handler returns something, it's ignored.
282282
- When `finally` throws an error, then the execution goes to the nearest error handler.
283283
284-
These features are helpful and make things work just the right way if we `finally` how it's supposed to be used: for generic cleanup procedures.
284+
These features are helpful and make things work just the right way if we use `finally` how it's supposed to be used: for generic cleanup procedures.
285285
286286
````smart header="We can attach handlers to settled promises"
287287
If a promise is pending, `.then/catch/finally` handlers wait for its outcome.

0 commit comments

Comments
 (0)