Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fd70f75

Browse files
authoredNov 18, 2019
add consistency
quick description: before: .catch(f) is the same as promise.then(null, f) after: .catch(f) is the same as .then(null, f)
1 parent e515f80 commit fd70f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ let promise = new Promise((resolve, reject) => {
205205
});
206206
207207
*!*
208-
// .catch(f) is the same as promise.then(null, f)
208+
// .catch(f) is the same as .then(null, f)
209209
promise.catch(alert); // shows "Error: Whoops!" after 1 second
210210
*/!*
211211
```

0 commit comments

Comments
 (0)
Please sign in to comment.