From 2723d2db7e17f4e37d1e4044eb11663aaf3f742e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 22 Dec 2020 09:24:29 +0100 Subject: [PATCH] doc: fix AbortSignal example for stream.Readable PR-URL: https://github.com/nodejs/node/pull/36596 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Yongsheng Zhang --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 936a81cc6e4219..cf9e8d6de7fb39 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -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) {