Skip to content

Commit

Permalink
Merge pull request #1 from xinnix/xinnix-patch-1
Browse files Browse the repository at this point in the history
fix section Promise.reject() bug
  • Loading branch information
xinnix committed Jan 8, 2016
2 parents 91d44bd + 38d393f commit 78fdf4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/promise.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ p.then(function () {
```javascript
var p = Promise.reject('出错了');
// 等同于
var p = new Promise((resolve, reject) => reject('foo'))
var p = new Promise((resolve, reject) => reject('出错了'))
p.then(null, function (s){
console.log(s)
Expand Down

0 comments on commit 78fdf4e

Please sign in to comment.