Skip to content

Commit

Permalink
Fix format bug
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Oct 31, 2014
1 parent bd6fc2b commit c70f315
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lesson17/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ var outputPromise = getInputPromise().then(function(fulfiled){
});

/**
* 当outputPromise状态由未完成变成fulfil时,调用function(fulfiled),控制台打印'[Error:fulfiled]'
* 当outputPromise状态由未完成变成rejected, 调用function(rejected), 控制台打印'[Error:rejected]'。
* 当outputPromise状态由未完成变成fulfil时,调用function(fulfiled),控制台打印test.txt文件内容
*
*/
outputPromise.then(function(fulfiled){
console.log(fulfiled);
Expand Down Expand Up @@ -682,11 +682,6 @@ Q.allSettled([printFileContent('nosuchfile.txt'),printFileContent('sample02.txt'
.then(function(){return getPromise('3',1000)})
.done();

```

console.log('final:');
console.log(result);
});
```

## 结束语
Expand Down

0 comments on commit c70f315

Please sign in to comment.