Skip to content

Commit 19c2332

Browse files
committed
doc: fix AbortSignal example for stream.Readable
PR-URL: #36596 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
1 parent 036ed1f commit 19c2332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2380,7 +2380,7 @@ Calling `abort` on the `AbortController` corresponding to the passed
23802380
on the readable created.
23812381

23822382
```js
2383-
const fs = require('fs');
2383+
const { Readable } = require('stream');
23842384
const controller = new AbortController();
23852385
const read = new Readable({
23862386
read(size) {

0 commit comments

Comments
 (0)