From b0e4a02dca9d342041a5063852e0c2ab8b009b29 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 24 Dec 2019 15:10:12 -0800 Subject: [PATCH] doc,string_decoder: use code markup/markdown in headers Backport-PR-URL: https://github.com/nodejs/node/pull/31108 PR-URL: https://github.com/nodejs/node/pull/31086 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater --- doc/api/string_decoder.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index 525128bfa27bc0..29defb71747095 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])` @@ -54,7 +54,7 @@ added: v0.1.99 Creates a new `StringDecoder` instance. -### stringDecoder.end(\[buffer\]) +### `stringDecoder.end([buffer])` @@ -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)`