Fix typo.
This commit is contained in:
parent
dc904d122e
commit
34bb5ab173
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ The meaning is the same: it ensures that the returned value is a promise and ena
|
|||
````
|
||||
## Error handling
|
||||
|
||||
If a promise resolves normally, then `await promise` returns the result. But in case of a rejection, it throws the error, just if there were a `throw` statement at that line.
|
||||
If a promise resolves normally, then `await promise` returns the result. But in case of a rejection, it throws the error, just as if there were a `throw` statement at that line.
|
||||
|
||||
This code:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue