Skip to content

Commit 40c03ad

Browse files
committed
Promise doc formatting
1 parent 5ef7738 commit 40c03ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ const client2 = Binance({
2626
apiSecret: 'xxx',
2727
})
2828

29-
client.time()
30-
.then(time => console.log(time))
29+
client.time().then(time => console.log(time))
3130
```
3231

3332
Every REST method returns a Promise, making this library [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) ready.

0 commit comments

Comments
 (0)