Browse Source

doc: add a missing word in streams doc

Ignore encoding *if* chunk is a buffer
v0.11.5-release
Evan Solomon 12 years ago
committed by isaacs
parent
commit
13ed817fec
  1. 2
      doc/api/stream.markdown

2
doc/api/stream.markdown

@ -1000,7 +1000,7 @@ initialized.
* `chunk` {Buffer | String} The chunk to be written. Will always * `chunk` {Buffer | String} The chunk to be written. Will always
be a buffer unless the `decodeStrings` option was set to `false`. be a buffer unless the `decodeStrings` option was set to `false`.
* `encoding` {String} If the chunk is a string, then this is the * `encoding` {String} If the chunk is a string, then this is the
encoding type. Ignore chunk is a buffer. Note that chunk will encoding type. Ignore if chunk is a buffer. Note that chunk will
**always** be a buffer unless the `decodeStrings` option is **always** be a buffer unless the `decodeStrings` option is
explicitly set to `false`. explicitly set to `false`.
* `callback` {Function} Call this function (optionally with an error * `callback` {Function} Call this function (optionally with an error

Loading…
Cancel
Save