Commit b7229deb authored by Chris Neave's avatar Chris Neave Committed by James M Snell
Browse files

docs: Fix default options for fs.createWriteStream()



The documentation for createWriteStream() references an
'encoding' property that has a default value of null. However,
this property is never referenced by createWriteStream() or
WritableState(). Instead a 'defaultEncoding' property is
referenced in WritableState() with a default of 'utf8' if no value
is supplied.

This fix updates the documentation to rename the 'encoding'
property to 'defaultEncoding' and indicate its default value of
'utf8'.

Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
PR-URL: https://github.com/joyent/node/pull/25591
parent 70dd13f8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment