Skip to content

Commit ce8f5ee

Browse files
himself65addaleax
authored andcommitted
doc: add support encoding link on string_decoder.md
PR-URL: #31911 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 8790db6 commit ce8f5ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/api/string_decoder.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ console.log(decoder.end(Buffer.from([0xAC])));
4949
added: v0.1.99
5050
-->
5151

52-
* `encoding` {string} The character encoding the `StringDecoder` will use.
52+
* `encoding` {string} The character [encoding][] the `StringDecoder` will use.
5353
**Default:** `'utf8'`.
5454

5555
Creates a new `StringDecoder` instance.
@@ -88,3 +88,5 @@ Returns a decoded string, ensuring that any incomplete multibyte characters at
8888
the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the
8989
returned string and stored in an internal buffer for the next call to
9090
`stringDecoder.write()` or `stringDecoder.end()`.
91+
92+
[encoding]: buffer.html#buffer_buffers_and_character_encodings

0 commit comments

Comments
 (0)