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 <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
  • Loading branch information
targos committed Dec 22, 2020
1 parent d90fa19 commit 2723d2d
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 2723d2d

Please sign in to comment.