From c89da2b704ddb8af32a47b0230f7cca3e470cce9 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 13 May 2016 10:01:33 -0700 Subject: [PATCH] doc: add `added:` info for `string_decoder` Ref: https://github.com/nodejs/node/issues/6578 --- doc/api/string_decoder.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index f979e7dd37f1e1..06b97bab489a85 100644 --- a/doc/api/string_decoder.md +++ b/doc/api/string_decoder.md @@ -18,13 +18,22 @@ console.log(decoder.write(euro)); ``` ## Class: StringDecoder + Accepts a single argument, `encoding` which defaults to `'utf8'`. ### decoder.end() + Returns any trailing bytes that were left in the buffer. ### decoder.write(buffer) + Returns a decoded string.