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
PR-URL: #31086
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
Trott authored and BridgeAR committed Jan 3, 2020
1 parent 4c5a985 commit cf563bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/string_decoder.md
Original file line number Diff line number Diff line change
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 cf563bb

Please sign in to comment.