Skip to content

doc: 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.

Fixes: https://github.com/nodejs/node/issues/14611

Checklist
Affected core subsystem(s)

doc

Merge request reports

Loading