Fix outdated reference to .end() in Streams doc

This commit is contained in:
Guangcong Luo 2024-01-17 22:20:59 -08:00 committed by GitHub
parent 6f1a640b71
commit 517f34bee8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ The stream version lets you do it a bit at a time instead of all at once, so you
* `encoding` [override encoding](#override-encoding)
* Returns: {Promise<void>} for the next time it's safe to write to the `writeStream`.
Writes to the stream. `writeStream.write(null)` is equivalent to `writeStream.end()`.
Writes to the stream. `writeStream.write(null)` is equivalent to `writeStream.writeEnd()`.
### writeStream.writeLine(chunk, [encoding])