-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: rename defaultEncoding option to encoding #14867
doc: rename defaultEncoding option to encoding #14867
Conversation
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: #14611
Welcome @azasypkin, and thank you for the contribution 🥇 |
@refack @lpinca looking at this I wondered why things still seem to work with Line 99 in aa011a1
When fs.createWritableStream() creates the new stream.Writable it's just passing along the user provided options.defaultEncoding (if there was one).
The refack: edited formatting to embed reffed line |
IMHO the docs for |
/cc @nodejs/streams @nodejs/documentation |
I think it makes sense to include this little change in this PR as well, I'll add it. |
@refack @azasypkin I would not add that change here. Ideally, I will remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Okay, it's even better :) |
Landed in e96c11c |
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: #14867 Fixes: #14611 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
@azasypkin congratulation on GitHub promoting you from: |
Yay, thanks! |
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: #14867 Fixes: #14611 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
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: #14867 Fixes: #14611 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
The documentation for
fs.createWriteStream()
references adefaultEncoding
as possible options property, but in realityencoding
property is expected and properly handled. This fix updatesthe documentation to rename the
defaultEncoding
property toencoding
.Fixes: #14611
Checklist
Affected core subsystem(s)
doc