doc: fix AbortSignal example for stream.Readable

PR-URL: https://github.com/nodejs/node/pull/36596
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
This commit is contained in:
Michaël Zasso 2020-12-22 09:24:29 +01:00
parent d90fa196c5
commit 2723d2db7e
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600

View File

@ -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) {