Skip to content

Commit

Permalink
doc: fix AbortSignal example for stream.Readable
Browse files Browse the repository at this point in the history
PR-URL: #36596
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
  • Loading branch information
targos committed Dec 22, 2020
1 parent 036ed1f commit 19c2332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@ Calling `abort` on the `AbortController` corresponding to the passed
on the readable created.

```js
const fs = require('fs');
const { Readable } = require('stream');
const controller = new AbortController();
const read = new Readable({
read(size) {
Expand Down

0 comments on commit 19c2332

Please sign in to comment.