From f7f864f2ee413f9e3d52f02dc82f1880878629d3 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 3 Jul 2022 11:17:26 +0200 Subject: [PATCH] doc: fix default of duplex.allowHalfOpen --- 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 41a98aa827df74..0eb3e2a785ce30 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2288,7 +2288,7 @@ added: v0.9.4 If `false` then the stream will automatically end the writable side when the readable side ends. Set initially by the `allowHalfOpen` constructor option, -which defaults to `false`. +which defaults to `true`. This can be changed manually to change the half-open behavior of an existing `Duplex` stream instance, but must be changed before the `'end'` event is