From 9509ec32e7200d8cd15c98591935565c79389ed7 Mon Sep 17 00:00:00 2001 From: zjf Date: Sun, 10 May 2020 14:07:45 +0800 Subject: [PATCH] revise a little mistake --- open-in-web-browser.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-in-web-browser.html b/open-in-web-browser.html index 867fb9a..aa10c71 100644 --- a/open-in-web-browser.html +++ b/open-in-web-browser.html @@ -3869,7 +3869,7 @@

7.7 : Catching Rejections in the Chain with catch()

  1. The catch() method is typically used over providing each then() with a rejection parameter.
  2. Notice how readable the code in this section becomes once a single rejection function was used via a catch() over providing a rejection function for each then().
  3. -
  4. The catch() method is simply a short-hand for, .then(null, error => { // do something with error }).
  5. +
  6. The catch() method is simply a short-hand for, .then(undefined, error => { // do something with error }).