Skip to content

doc: fix example in stream doc

Rodrigo Muino Tomonari requested to merge github/fork/lpinca/gh-8085 into master
Checklist
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc

Description of change

If chunk is a buffer chunk.toString(encoding) throws an error as 'buffer' is not a valid encoding. This fixes the documentation bug by not using the encoding argument.

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

Merge request reports

Loading