Improving example in promisify.md

This commit is contained in:
Daniel Ramos
2017-12-13 10:33:39 +00:00
parent b74ba8bbfc
commit f8ee54604b
2 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ const promisify = func =>
: resolve(result))
)
// const stat = promisify(fs.stat)
// When called, stat returns a promise
// stat('foo.txt') -> Promise resolves if `foo.txt` exists, otherwise rejects
```
### Random integer in range

View File

@ -13,5 +13,5 @@ const promisify = func =>
: resolve(result))
)
// const stat = promisify(fs.stat)
// When called, stat returns a promise
// stat('foo.txt') -> Promise resolves if `foo.txt` exists, otherwise rejects
```