Improving example in promisify.md
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user