Skip to content

Commit 87dadd5

Browse files
authoredOct 8, 2020
Fixed documentation example for responseType (#1494)
1 parent 3bf3e3b commit 87dadd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Example:
306306
const bufferPromise = responsePromise.buffer();
307307
const jsonPromise = responsePromise.json();
308308

309-
const [response, buffer, json] = Promise.all([responsePromise, bufferPromise, jsonPromise]);
309+
const [response, buffer, json] = await Promise.all([responsePromise, bufferPromise, jsonPromise]);
310310
// `response` is an instance of Got Response
311311
// `buffer` is an instance of Buffer
312312
// `json` is an object

0 commit comments

Comments
 (0)
Please sign in to comment.