diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index d1de27dc4a395a..b24b067602b9ce 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.