From 87dadd53bdef4184ecba1b263a726bba4674c23c Mon Sep 17 00:00:00 2001 From: Feyzullah YILDIZ Date: Thu, 8 Oct 2020 18:37:45 +0300 Subject: [PATCH] Fixed documentation example for `responseType` (#1494) --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b642e2fa5..22f3154ac 100644 --- a/readme.md +++ b/readme.md @@ -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