Skip to content

Commit 99e4e41

Browse files
johanrdJosh-Cena
andauthored
Fix typo (mdn#40582)
* Typo in resource_management/index.md * Sneak in smth else --------- Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
1 parent efebdd8 commit 99e4e41

File tree

3 files changed

+3
-1
lines changed
  • files/en-us/web/javascript
    • guide/resource_management
    • reference/global_objects

3 files changed

+3
-1
lines changed

files/en-us/web/javascript/guide/resource_management/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ readUntil(stream, "b")
314314
});
315315
```
316316

317-
So, `using` does not swallow an errors: all errors that occur are still thrown, but the resources get closed right before that. Now, what happens if the resource cleanup itself also throws an error? Let's use a more contrived example:
317+
So, `using` does not swallow any errors: all errors that occur are still thrown, but the resources get closed right before that. Now, what happens if the resource cleanup itself also throws an error? Let's use a more contrived example:
318318

319319
```js
320320
class MyReader {

files/en-us/web/javascript/reference/global_objects/asynciterator/symbol.asyncdispose/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: AsyncIterator.prototype[Symbol.asyncDispose]()
3+
short-title: "[Symbol.asyncDispose]()"
34
slug: Web/JavaScript/Reference/Global_Objects/AsyncIterator/Symbol.asyncDispose
45
page-type: javascript-instance-method
56
browser-compat: javascript.builtins.AsyncIterator.@@asyncDispose

files/en-us/web/javascript/reference/global_objects/iterator/symbol.dispose/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Iterator.prototype[Symbol.dispose]()
3+
short-title: "[Symbol.dispose]()"
34
slug: Web/JavaScript/Reference/Global_Objects/Iterator/Symbol.dispose
45
page-type: javascript-instance-method
56
browser-compat: javascript.builtins.Iterator.@@dispose

0 commit comments

Comments
 (0)