Browse Source

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: https://github.com/nodejs/node/pull/4537
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v5.x
Shigeki Ohtsu 9 years ago
committed by Jeremiah Senkpiel
parent
commit
334e73942e
  1. 6
      doc/api/buffer.markdown

6
doc/api/buffer.markdown

@ -32,7 +32,7 @@ would need to ever use `require('buffer')`.
const buf4 = new Buffer('tést', 'utf8'); const buf4 = new Buffer('tést', 'utf8');
// creates a buffer containing UTF8 bytes [74, c3, a9, 73, 74] // creates a buffer containing UTF8 bytes [74, c3, a9, 73, 74]
### Buffers and Character Encodings ## Buffers and Character Encodings
Buffers are commonly used to represent sequences of encoded characters Buffers are commonly used to represent sequences of encoded characters
such as UTF8, UCS2, Base64 or even Hex-encoded data. It is possible to 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:
* `'hex'` - Encode each byte as two hexadecimal characters. * `'hex'` - Encode each byte as two hexadecimal characters.
### Buffers and TypedArray ## Buffers and TypedArray
Buffers are also `Uint8Array` TypedArray instances. However, there are subtle Buffers are also `Uint8Array` TypedArray instances. However, there are subtle
incompatibilities with the TypedArray specification in ECMAScript 2015. For 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
console.log(buf.length); console.log(buf.length);
// Prints: 16 // Prints: 16
### Buffers and ES6 iteration ## Buffers and ES6 iteration
Buffers can be iterated over using the ECMAScript 2015 (ES6) `for..of` syntax: Buffers can be iterated over using the ECMAScript 2015 (ES6) `for..of` syntax:

Loading…
Cancel
Save