Skip to content

Commit

Permalink
Merge pull request #39 from lwxyfer/master
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
liubin committed May 3, 2017
2 parents e587201 + 4af1f3f commit 930f798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ch2_HowToWrite/then-return-new-promise.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function badAsyncCall() {
由于每次 `promise.then` 调用都会返回一个新创建的promise对象,因此需要像上述方式2那样,采用promise chain的方式将调用进行链式化,修改后的代码如下所示。

[source,javascript]
.`then` 返回返回新创建的promise对象
.`then` 返回新创建的promise对象
----
function anAsyncCall() {
var promise = Promise.resolve();
Expand Down

0 comments on commit 930f798

Please sign in to comment.