Skip to content

Commit 4697b7b

Browse files
authored
Merge pull request #2322 from vsemozhetbyt/patch-5
Fix typos in 5.8 (XMLHttpRequest)
2 parents 277374f + b79964a commit 4697b7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

5-network/08-xmlhttprequest/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ xhr.onload = function() {
9393
if (xhr.status != 200) { // analyze HTTP status of the response
9494
alert(`Error ${xhr.status}: ${xhr.statusText}`); // e.g. 404: Not Found
9595
} else { // show the result
96-
alert(`Done, got ${xhr.response.length} bytes`); // response is the server
96+
alert(`Done, got ${xhr.response.length} bytes`); // response is the server response
9797
}
9898
};
9999
@@ -190,7 +190,7 @@ All states, as in [the specification](https://xhr.spec.whatwg.org/#states):
190190
UNSENT = 0; // initial state
191191
OPENED = 1; // open called
192192
HEADERS_RECEIVED = 2; // response headers received
193-
LOADING = 3; // response is loading (a data packed is received)
193+
LOADING = 3; // response is loading (a data packet is received)
194194
DONE = 4; // request complete
195195
```
196196

0 commit comments

Comments
 (0)