Skip to content

Commit 690d553

Browse files
author
左伦
committed
修改一处容易产生误解的示例
1 parent d7f742a commit 690d553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/promise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Promise实例生成以后,可以用then方法分别指定Resolved状态和Reje
4545
```javascript
4646
promise.then(function(value) {
4747
// success
48-
}, function(value) {
48+
}, function(error) {
4949
// failure
5050
});
5151
```

0 commit comments

Comments
 (0)