Skip to content

Commit 6d71bba

Browse files
committed
edit Promise typo
1 parent 0246e72 commit 6d71bba

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
@@ -487,7 +487,7 @@ p.then(null, function (s){
487487
我们可以将图片的加载写成一个`Promise`,一旦加载完成,`Promise`的状态就发生变化。
488488
489489
```javascript
490-
conset preloadImage = function (path) {
490+
const preloadImage = function (path) {
491491
return new Promise(function (resolve, reject) {
492492
var image = new Image();
493493
image.onload = resolve;

0 commit comments

Comments
 (0)