doc,fs: rename defaultEncoding option to encoding
The documentation for `fs.createWriteStream()` references a `defaultEncoding` as possible options property, but in reality `encoding` property is expected and properly handled. This fix updates the documentation to rename the `defaultEncoding` property to `encoding`. PR-URL: https://github.com/nodejs/node/pull/14867 Fixes: https://github.com/nodejs/node/issues/14611 Reviewed-By:Luigi Pinca <luigipinca@gmail.com> Reviewed-By:
Refael Ackermann <refack@gmail.com> Reviewed-By:
Matteo Collina <matteo.collina@gmail.com> Reviewed-By:
James M Snell <jasnell@gmail.com>
parent
76215557
Please register or sign in to comment