Skip to content

Commit f0cd3f4

Browse files
Shigeki OhtsuMichael Scovetta
Shigeki Ohtsu
authored and
Michael Scovetta
committed
doc: fix heading level error in Buffer doc
tools/doc/html.js in make doc throws an error in checking a heading level in the markdown file. PR-URL: nodejs#4537 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9c2492d commit f0cd3f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/buffer.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ would need to ever use `require('buffer')`.
3232
const buf4 = new Buffer('tést', 'utf8');
3333
// creates a buffer containing UTF8 bytes [74, c3, a9, 73, 74]
3434

35-
### Buffers and Character Encodings
35+
## Buffers and Character Encodings
3636

3737
Buffers are commonly used to represent sequences of encoded characters
3838
such as UTF8, UCS2, Base64 or even Hex-encoded data. It is possible to
@@ -66,7 +66,7 @@ The character encodings currently supported by Node.js include:
6666

6767
* `'hex'` - Encode each byte as two hexadecimal characters.
6868

69-
### Buffers and TypedArray
69+
## Buffers and TypedArray
7070

7171
Buffers are also `Uint8Array` TypedArray instances. However, there are subtle
7272
incompatibilities with the TypedArray specification in ECMAScript 2015. For
@@ -116,7 +116,7 @@ create a Buffer that uses only a part of the `ArrayBuffer`, use the
116116
console.log(buf.length);
117117
// Prints: 16
118118

119-
### Buffers and ES6 iteration
119+
## Buffers and ES6 iteration
120120

121121
Buffers can be iterated over using the ECMAScript 2015 (ES6) `for..of` syntax:
122122

0 commit comments

Comments
 (0)