Skip to content

Commit

Permalink
doc,string_decoder: use code markup/markdown in headers
Browse files Browse the repository at this point in the history
Backport-PR-URL: #31108
PR-URL: #31086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Trott authored and BethGriggs committed Feb 6, 2020
1 parent 8a98243 commit b0e4a02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/string_decoder.md
Expand Up @@ -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
-->
Expand All @@ -54,7 +54,7 @@ added: v0.1.99

Creates a new `StringDecoder` instance.

### stringDecoder.end(\[buffer\])
### `stringDecoder.end([buffer])`
<!-- YAML
added: v0.9.3
-->
Expand All @@ -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:
Expand Down

0 comments on commit b0e4a02

Please sign in to comment.