Skip to content

Commit fd70f75

Browse files
authored
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

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

+1-1
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)