Skip to content

Commit 16e7d07

Browse files
committed
Fix typos
1 parent 3dd9fb0 commit 16e7d07

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

1-js/10-error-handling/1-try-catch/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ try {
521521
}
522522
*/!*
523523
524-
alert(result || "error occured");
524+
alert(result || "error occurred");
525525
526526
alert( `execution took ${diff}ms` );
527527
```

10-misc/12-mutation-observer/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Then after any changes, the `callback` is executed, with a list of [MutationReco
3838
- `"attributes"`: attribute modified
3939
- `"characterData"`: data modified, used for text nodes,
4040
- `"childList"`: child elements added/removed,
41-
- `target` -- where the change occured: an element for "attributes", or text node for "characterData", or an element for a "childList" mutation,
41+
- `target` -- where the change occurred: an element for "attributes", or text node for "characterData", or an element for a "childList" mutation,
4242
- `addedNodes/removedNodes` -- nodes that were added/removed,
4343
- `previousSibling/nextSibling` -- the previous and next sibling to added/removed nodes,
4444
- `attributeName/attributeNamespace` -- the name/namespace (for XML) of the changed attribute,

2-ui/5-loading/03-onload-onerror/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ img.onload = function() {
9292
};
9393

9494
img.onerror = function() {
95-
alert("Error occured while loading image");
95+
alert("Error occurred while loading image");
9696
};
9797
```
9898

4-binary/04-file/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ As the reading proceeds, there are events:
6060
- `progress` -- occurs during reading.
6161
- `load` -- no errors, reading complete.
6262
- `abort` -- `abort()` called.
63-
- `error` -- error has occured.
63+
- `error` -- error has occurred.
6464
- `loadend` -- reading finished with either success or failure.
6565

6666
When the reading is finished, we can access the result as:

5-network/07-xmlhttprequest/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ There are actually more events, the [modern specification](http://www.w3.org/TR/
495495
- `loadstart` -- the request has started.
496496
- `progress` -- a data packet of the response has arrived, the whole response body at the moment is in `responseText`.
497497
- `abort` -- the request was canceled by the call `xhr.abort()`.
498-
- `error` -- connection error has occured, e.g. wrong domain name. Doesn't happen for HTTP-errors like 404.
498+
- `error` -- connection error has occurred, e.g. wrong domain name. Doesn't happen for HTTP-errors like 404.
499499
- `load` -- the request has finished successfully.
500500
- `timeout` -- the request was canceled due to timeout (only happens if it was set).
501501
- `loadend` -- the request has finished (succeffully or not).

0 commit comments

Comments
 (0)