Skip to content

Commit 9c93ea3

Browse files
estliberitasrvagg
authored andcommittedFeb 9, 2016
doc: fix links order in Buffer doc
Sort links in lexical order PR-URL: #5076 Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Roman Klauke <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a0ba378 commit 9c93ea3

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed
 

‎doc/api/buffer.markdown

+8-9
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ The character encodings currently supported by Node.js include:
7575
Buffers are also `Uint8Array` TypedArray instances. However, there are subtle
7676
incompatibilities with the TypedArray specification in ECMAScript 2015. For
7777
instance, while `ArrayBuffer#slice()` creates a copy of the slice,
78-
the implementation of [`Buffer#slice()`][] creates a view over the existing
79-
Buffer without copying, making `Buffer#slice()` far more efficient.
78+
the implementation of [`Buffer#slice()`][`buf.slice()`] creates a view over the
79+
existing Buffer without copying, making `Buffer#slice()` far more efficient.
8080

8181
It is also possible to create new TypedArray instances from a `Buffer` with the
8282
following caveats:
@@ -1351,17 +1351,16 @@ socket.on('readable', () => {
13511351
Use of `SlowBuffer` should be used only as a last resort *after* a developer
13521352
has observed undue memory retention in their applications.
13531353

1354-
[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
1355-
[`Array#indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
13561354
[`Array#includes()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
1355+
[`Array#indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
1356+
[`buf.entries()`]: #buffer_buf_entries
13571357
[`buf.fill(0)`]: #buffer_buf_fill_value_offset_end
1358+
[`buf.keys()`]: #buffer_buf_keys
13581359
[`buf.slice()`]: #buffer_buf_slice_start_end
1360+
[`buf.values()`]: #buffer_buf_values
13591361
[`buf1.compare(buf2)`]: #buffer_buf_compare_otherbuffer
1360-
[`Buffer#slice()`]: #buffer_buf_slice_start_end
1362+
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
13611363
[`RangeError`]: errors.html#errors_class_rangeerror
13621364
[`String.prototype.length`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
13631365
[`util.inspect()`]: util.html#util_util_inspect_object_options
1364-
[`buf.values()`]: #buffer_buf_values
1365-
[`buf.keys()`]: #buffer_buf_keys
1366-
[`buf.entries()`]: #buffer_buf_entries
1367-
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
1366+
[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols

0 commit comments

Comments
 (0)