diff options
author | Rich Trott <rtrott@gmail.com> | 2019-12-25 02:10:12 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-12-27 08:39:32 +0300 |
commit | cdb727d6db0be76c3ed2585e71c0427809f377fb (patch) | |
tree | e5b798138fcea0f3160e4b1b26a55fc13627910b /doc/api/string_decoder.md | |
parent | 7034a3e68d3281548e9410a5a9b2bb73923a96fd (diff) |
doc,string_decoder: use code markup/markdown in headers
PR-URL: https://github.com/nodejs/node/pull/31086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/string_decoder.md')
-rw-r--r-- | doc/api/string_decoder.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index 525128bfa27..29defb71747 100644 --- a/doc/api/string_decoder.md +++ b/doc/api/string_decoder.md @@ -42,9 +42,9 @@ decoder.write(Buffer.from([0x82])); console.log(decoder.end(Buffer.from([0xAC]))); ``` -## Class: StringDecoder +## Class: `StringDecoder` -### new StringDecoder(\[encoding\]) +### `new StringDecoder([encoding])` <!-- YAML added: v0.1.99 --> @@ -54,7 +54,7 @@ added: v0.1.99 Creates a new `StringDecoder` instance. -### stringDecoder.end(\[buffer\]) +### `stringDecoder.end([buffer])` <!-- YAML added: v0.9.3 --> @@ -70,7 +70,7 @@ substitution characters appropriate for the character encoding. If the `buffer` argument is provided, one final call to `stringDecoder.write()` is performed before returning the remaining input. -### stringDecoder.write(buffer) +### `stringDecoder.write(buffer)` <!-- YAML added: v0.1.99 changes: |