From b79964ad8d9cb70df320bbbc2f2a729a8d9ebb43 Mon Sep 17 00:00:00 2001 From: Vse Mozhe Buty Date: Sat, 28 Nov 2020 19:52:12 +0200 Subject: [PATCH] Fix typos in 5.8 (XMLHttpRequest) --- 5-network/08-xmlhttprequest/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/5-network/08-xmlhttprequest/article.md b/5-network/08-xmlhttprequest/article.md index 1a2b754e..6b4d3d73 100644 --- a/5-network/08-xmlhttprequest/article.md +++ b/5-network/08-xmlhttprequest/article.md @@ -93,7 +93,7 @@ xhr.onload = function() { if (xhr.status != 200) { // analyze HTTP status of the response alert(`Error ${xhr.status}: ${xhr.statusText}`); // e.g. 404: Not Found } else { // show the result - alert(`Done, got ${xhr.response.length} bytes`); // response is the server + alert(`Done, got ${xhr.response.length} bytes`); // response is the server response } }; @@ -190,7 +190,7 @@ All states, as in [the specification](https://xhr.spec.whatwg.org/#states): UNSENT = 0; // initial state OPENED = 1; // open called HEADERS_RECEIVED = 2; // response headers received -LOADING = 3; // response is loading (a data packed is received) +LOADING = 3; // response is loading (a data packet is received) DONE = 4; // request complete ```