diff options
author | Chris Neave <chrispneave@gmail.com> | 2015-05-23 21:24:49 +0100 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2015-08-03 20:44:39 -0700 |
commit | b7229debbe6007772a4cbe82f158176b6f45de80 (patch) | |
tree | 8a8d9377e783161ee4f97fe392aa3fca140aaff4 | |
parent | 70dd13f88d01ee958242bf697332abb00b0c4582 (diff) | |
download | node-b7229debbe6007772a4cbe82f158176b6f45de80.tar.gz |
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: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/joyent/node/pull/25591
-rw-r--r-- | doc/api/fs.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 6898a9e1b..9da32d376 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -823,7 +823,7 @@ Returns a new WriteStream object (See `Writable Stream`). `options` is an object with the following defaults: { flags: 'w', - encoding: null, + defaultEncoding: 'utf8', fd: null, mode: 0666 } |