Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 37e3243

Browse filesBrowse files
TrottMylesBorins
authored andcommitted
doc,string_decoder: use code markup/markdown in headers
Backport-PR-URL: #31108 PR-URL: #31086 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 920b8d5 commit 37e3243
Copy full SHA for 37e3243

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/string_decoder.md‎

Copy file name to clipboardExpand all lines: doc/api/string_decoder.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ decoder.write(Buffer.from([0x82]));
4242
console.log(decoder.end(Buffer.from([0xAC])));
4343
```
4444

45-
## Class: StringDecoder
45+
## Class: `StringDecoder`
4646

47-
### new StringDecoder(\[encoding\])
47+
### `new StringDecoder([encoding])`
4848
<!-- YAML
4949
added: v0.1.99
5050
-->
@@ -54,7 +54,7 @@ added: v0.1.99
5454

5555
Creates a new `StringDecoder` instance.
5656

57-
### stringDecoder.end(\[buffer\])
57+
### `stringDecoder.end([buffer])`
5858
<!-- YAML
5959
added: v0.9.3
6060
-->
@@ -70,7 +70,7 @@ substitution characters appropriate for the character encoding.
7070
If the `buffer` argument is provided, one final call to `stringDecoder.write()`
7171
is performed before returning the remaining input.
7272

73-
### stringDecoder.write(buffer)
73+
### `stringDecoder.write(buffer)`
7474
<!-- YAML
7575
added: v0.1.99
7676
changes:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.