Skip to content

Commit 1303e35

Browse files
ImHypetargos
authored andcommitted
doc: clarify description of readable.push() method
PR-URL: #29687 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent d258e02 commit 1303e35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/stream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,8 +2149,8 @@ class SourceWrapper extends Readable {
21492149
}
21502150
```
21512151

2152-
The `readable.push()` method is intended be called only by `Readable`
2153-
implementers, and only from within the `readable._read()` method.
2152+
The `readable.push()` method is used to push the content
2153+
into the internal buffer. It can be driven by the `readable._read()` method.
21542154

21552155
For streams not operating in object mode, if the `chunk` parameter of
21562156
`readable.push()` is `undefined`, it will be treated as empty string or

0 commit comments

Comments
 (0)