doc: fix example in stream doc
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.