diff --git a/doc/api/stream.md b/doc/api/stream.md index ba1c56398d5..0e12e76c810 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -380,6 +380,10 @@ file.end('world!'); ##### writable.setDefaultEncoding(encoding) * `encoding` {String} The new default encoding @@ -429,6 +433,11 @@ See also: [`writable.cork()`][]. ##### writable.write(chunk[, encoding][, callback]) * `chunk` {String|Buffer} The data to write @@ -1069,6 +1078,11 @@ myReader.on('readable', () => { #### Class: stream.Duplex @@ -1190,6 +1204,9 @@ the [API for Stream Consumers][] section). Doing so may lead to adverse side effects in application code consuming the stream. ### Simplified Construction + For many simple cases, it is possible to construct a stream without relying on inheritance. This can be accomplished by directly creating instances of the