From 1ac15d1720ba9246c0b28a15e53cb5ef6c373ef4 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sun, 20 Oct 2019 23:15:03 +0200 Subject: [PATCH] fixup --- doc/api/stream.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index b17d0e4f44d1a2..208f126f77f6c7 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1667,11 +1667,11 @@ of a stream that are intended for use by consumers (as described in the [API for Stream Consumers][] section). Doing so may lead to adverse side effects in application code consuming the stream. -It is highly discouraged to override any public method. As well as emitting any -internal events such as `'error'`, `'data'`, `'end'`, `'finish'` and `'close'` -manually through `.emit(err)` instead of using API provided callbacks or +It is highly discouraged to override any public method or to emit any internal +events such as `'error'`, `'data'`, `'end'`, `'finish'` and `'close'` manually +through `.emit(err)` instead of using API provided callbacks or `.destroy(err)`. Doing so can break current and future stream invariants -leading to behaviour and/or compatibility issues with other streams, stream +leading to behavior and/or compatibility issues with other streams, stream utilities and user expectations. ### Simplified Construction