summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel George Holz <dgholz@gmail.com>2019-01-12 22:35:34 +0000
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2019-01-20 22:58:38 +0200
commitfac11b05b7fa36a936cce32f303a29dd093ac2dc (patch)
tree50b64916d90a38f5a6a92b9427d800e3a07008d5 /Makefile
parent5571c0ddebe72e894e41bbee56c7165a55788288 (diff)
downloadandroid-node-v8-fac11b05b7fa36a936cce32f303a29dd093ac2dc.tar.gz
android-node-v8-fac11b05b7fa36a936cce32f303a29dd093ac2dc.tar.bz2
android-node-v8-fac11b05b7fa36a936cce32f303a29dd093ac2dc.zip
doc: reword stream docs to clarify that decodeStrings encodes strings
I was implementing a Writable stream and misunderstood `decodeStrings` to mean 'will decode `Buffer`s into `string`s before calling `_write`'. This change adds a little more detail to the description of `decodeStrings` to clarify its effect on a Writable stream & what gets passed to `_write`. Changing the name of the option to `encodeStrings` would make it much easier to understand, but the name was chosen in 2012 and the option used in many projects (22k mentions of 'decodeStringsr in JS projects in GitHub). Deprecating the old name & rolling out a replacement is beyond my capabilities as a first-time contributor. PR-URL: https://github.com/nodejs/node/pull/25468 Fixes: https://github.com/nodejs/node/issues/25464 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions