Skip to content

Commit

Permalink
Fixed documentation example for responseType (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
feyzullahyildiz authored Oct 8, 2020
1 parent 3bf3e3b commit 87dadd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Example:
const bufferPromise = responsePromise.buffer();
const jsonPromise = responsePromise.json();

const [response, buffer, json] = Promise.all([responsePromise, bufferPromise, jsonPromise]);
const [response, buffer, json] = await Promise.all([responsePromise, bufferPromise, jsonPromise]);
// `response` is an instance of Got Response
// `buffer` is an instance of Buffer
// `json` is an object
Expand Down

0 comments on commit 87dadd5

Please sign in to comment.