From 88c24d85ee0d18a9d0c09ef229a76c4a796ccf89 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 6 Apr 2018 11:38:58 -0700 Subject: [PATCH] docs: clarify config order of precedence --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 89dfccd..1b66d04 100755 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ axios.get('/user', { .catch(function (error) { console.log(error); }); - + // Want to use async/await? Add the `async` keyword to your outer function/method. async function getUser() { try { @@ -86,7 +86,7 @@ async function getUser() { } ``` -> **NOTE:** `async/await` is part of ECMAScript 2017 and is not supported in Internet +> **NOTE:** `async/await` is part of ECMAScript 2017 and is not supported in Internet > Explorer and older browsers, so use with caution. Performing a `POST` request @@ -442,7 +442,7 @@ Config will be merged with an order of precedence. The order is library defaults var instance = axios.create(); // Override timeout default for the library -// Now all requests will wait 2.5 seconds before timing out +// Now all requests using this instance will wait 2.5 seconds before timing out instance.defaults.timeout = 2500; // Override timeout for this request as it's known to take a long time