update docs for promises

This commit is contained in:
AJ ONeal 2020-02-27 02:17:07 +00:00
parent ef3183e984
commit 4f3fe38ee4
1 changed files with 0 additions and 2 deletions

View File

@ -28,9 +28,7 @@ request('http://www.google.com', function(error, response, body) {
**Using Promises**
```js
var promisify = require('util').promisify;
var request = require('@root/request');
request = promisify(request);
request('http://www.google.com')
.then(function(response) {