Skip to content

Commit 0d2f4fb

Browse files
committed
doc: fix typos and update MDN links for disposables
1 parent 3fd4860 commit 0d2f4fb

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/api/fs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ Both this function and the disposal function on the resulting object are
16091609
async, so it should be used with `await` + `await using` as in
16101610
`await using dir = await fsPromises.mkdtempDisposable('prefix')`.
16111611
1612-
<!-- TODO: link MDN docs for disposables once https://github.com/mdn/content/pull/38027 lands -->
1612+
For more information, see [MDN's documentation for Explicit Resource Management](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using).
16131613
16141614
For detailed information, see the documentation of [`fsPromises.mkdtemp()`][].
16151615
@@ -6259,7 +6259,7 @@ removed if it still exists. If the directory cannot be deleted, disposal will
62596259
throw an error. The object has a `remove()` method which will perform the same
62606260
task.
62616261
6262-
<!-- TODO: link MDN docs for disposables once https://github.com/mdn/content/pull/38027 lands -->
6262+
For more information, see [MDN's documentation for Explicit Resource Management](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using).
62636263
62646264
For detailed information, see the documentation of [`fs.mkdtemp()`][].
62656265

doc/api/stream_iter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ console.log(ready); // Promise { true } -- no backpressure
15881588
* Value: `Symbol.for('Stream.shareProtocol')`
15891589
15901590
The value must be a function. When called by `Share.from()`, it receives the
1591-
options passed to `Share.from()` and must return an object conforming the the
1591+
options passed to `Share.from()` and must return an object conforming to the
15921592
{Share} interface. The implementation is fully custom -- it can manage the shared
15931593
source, consumers, buffering, and backpressure however it wants.
15941594

doc/api/util.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2551,7 +2551,7 @@ changes:
25512551
25522552
* `format` {string | Array} A text format or an Array
25532553
of text formats defined in `util.inspect.colors`.
2554-
* `text` {string} The text to to be formatted.
2554+
* `text` {string} The text to be formatted.
25552555
* `options` {Object}
25562556
* `validateStream` {boolean} When true, `stream` is checked to see if it can handle colors. **Default:** `true`.
25572557
* `stream` {Stream} A stream that will be validated if it can be colored. **Default:** `process.stdout`.

0 commit comments

Comments
 (0)