From 9495d9477bb0a22ca84a92a60ab27a1bb89051c3 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 22 Mar 2018 22:33:16 -0700 Subject: [PATCH] doc: wrap buffer.md at 80 characters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wrap `buffer.md` at 80 characters and enforce with linter. PR-URL: https://github.com/nodejs/node/pull/19546 Reviewed-By: Yuta Hiroto Reviewed-By: Daniel Bevenius Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Gibson Fahnestock --- doc/api/buffer.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 1a1cfebe5ab0e7..97bc18911acc3b 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -1,7 +1,6 @@ # Buffer - > Stability: 2 - Stable @@ -81,7 +80,7 @@ to one of these new APIs.* * [`Buffer.from(array)`] returns a new `Buffer` that *contains a copy* of the provided octets. -* [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`] +* [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`] returns a new `Buffer` that *shares the same allocated memory* as the given [`ArrayBuffer`]. * [`Buffer.from(buffer)`] returns a new `Buffer` that *contains a copy* of the @@ -273,7 +272,7 @@ function: * [`Buffer.from(array)`] * [`Buffer.from(buffer)`] -* [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`] +* [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`] * [`Buffer.from(string[, encoding])`][`Buffer.from(string)`] ## Buffers and iteration @@ -348,7 +347,7 @@ changes: --> > Stability: 0 - Deprecated: Use -> [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`] +> [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`] > instead. * `arrayBuffer` {ArrayBuffer|SharedArrayBuffer} An [`ArrayBuffer`], @@ -2215,8 +2214,8 @@ changes: Writes `value` to `buf` at the specified `offset` with specified endian format (`writeInt16BE()` writes big endian, `writeInt16LE()` writes little -endian). `value` *should* be a valid signed 16-bit integer. Behavior is undefined -when `value` is anything other than a signed 16-bit integer. +endian). `value` *should* be a valid signed 16-bit integer. Behavior is +undefined when `value` is anything other than a signed 16-bit integer. `value` is interpreted and written as a two's complement signed integer. @@ -2248,8 +2247,8 @@ changes: Writes `value` to `buf` at the specified `offset` with specified endian format (`writeInt32BE()` writes big endian, `writeInt32LE()` writes little -endian). `value` *should* be a valid signed 32-bit integer. Behavior is undefined -when `value` is anything other than a signed 32-bit integer. +endian). `value` *should* be a valid signed 32-bit integer. Behavior is +undefined when `value` is anything other than a signed 32-bit integer. `value` is interpreted and written as a two's complement signed integer. @@ -2607,7 +2606,7 @@ This value may depend on the JS engine that is being used. [`Buffer.allocUnsafe()`]: #buffer_class_method_buffer_allocunsafe_size [`Buffer.allocUnsafeSlow()`]: #buffer_class_method_buffer_allocunsafeslow_size [`Buffer.from(array)`]: #buffer_class_method_buffer_from_array -[`Buffer.from(arrayBuffer)`]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length +[`Buffer.from(arrayBuf)`]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length [`Buffer.from(buffer)`]: #buffer_class_method_buffer_from_buffer [`Buffer.from(string)`]: #buffer_class_method_buffer_from_string_encoding [`Buffer.poolSize`]: #buffer_class_property_buffer_poolsize