Skip to content
Permalink
Browse files

doc,string_decoder: use code markup/markdown in headers

PR-URL: #31086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Trott authored and BridgeAR committed Dec 24, 2019
1 parent 4c5a985 commit cf563bbd7fa636ca3b6b6e88cab92b854947af0d
Showing with 4 additions and 4 deletions.
  1. +4 −4 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:

0 comments on commit cf563bb

Please sign in to comment.
You can’t perform that action at this time.