Skip to content

Commit 9495d94

Browse files
Trottjasnell
authored andcommitted
doc: wrap buffer.md at 80 characters
Wrap `buffer.md` at 80 characters and enforce with linter. PR-URL: #19546 Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent fccff27 commit 9495d94

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

doc/api/buffer.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Buffer
22

33
<!--introduced_in=v0.1.90-->
4-
<!--lint disable maximum-line-length-->
54

65
> Stability: 2 - Stable
76
@@ -81,7 +80,7 @@ to one of these new APIs.*
8180

8281
* [`Buffer.from(array)`] returns a new `Buffer` that *contains a copy* of the
8382
provided octets.
84-
* [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`]
83+
* [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`]
8584
returns a new `Buffer` that *shares the same allocated memory* as the given
8685
[`ArrayBuffer`].
8786
* [`Buffer.from(buffer)`] returns a new `Buffer` that *contains a copy* of the
@@ -273,7 +272,7 @@ function:
273272

274273
* [`Buffer.from(array)`]
275274
* [`Buffer.from(buffer)`]
276-
* [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`]
275+
* [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`]
277276
* [`Buffer.from(string[, encoding])`][`Buffer.from(string)`]
278277

279278
## Buffers and iteration
@@ -348,7 +347,7 @@ changes:
348347
-->
349348

350349
> Stability: 0 - Deprecated: Use
351-
> [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`]
350+
> [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`]
352351
> instead.
353352
354353
* `arrayBuffer` {ArrayBuffer|SharedArrayBuffer} An [`ArrayBuffer`],
@@ -2215,8 +2214,8 @@ changes:
22152214

22162215
Writes `value` to `buf` at the specified `offset` with specified endian
22172216
format (`writeInt16BE()` writes big endian, `writeInt16LE()` writes little
2218-
endian). `value` *should* be a valid signed 16-bit integer. Behavior is undefined
2219-
when `value` is anything other than a signed 16-bit integer.
2217+
endian). `value` *should* be a valid signed 16-bit integer. Behavior is
2218+
undefined when `value` is anything other than a signed 16-bit integer.
22202219

22212220
`value` is interpreted and written as a two's complement signed integer.
22222221

@@ -2248,8 +2247,8 @@ changes:
22482247

22492248
Writes `value` to `buf` at the specified `offset` with specified endian
22502249
format (`writeInt32BE()` writes big endian, `writeInt32LE()` writes little
2251-
endian). `value` *should* be a valid signed 32-bit integer. Behavior is undefined
2252-
when `value` is anything other than a signed 32-bit integer.
2250+
endian). `value` *should* be a valid signed 32-bit integer. Behavior is
2251+
undefined when `value` is anything other than a signed 32-bit integer.
22532252

22542253
`value` is interpreted and written as a two's complement signed integer.
22552254

@@ -2607,7 +2606,7 @@ This value may depend on the JS engine that is being used.
26072606
[`Buffer.allocUnsafe()`]: #buffer_class_method_buffer_allocunsafe_size
26082607
[`Buffer.allocUnsafeSlow()`]: #buffer_class_method_buffer_allocunsafeslow_size
26092608
[`Buffer.from(array)`]: #buffer_class_method_buffer_from_array
2610-
[`Buffer.from(arrayBuffer)`]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length
2609+
[`Buffer.from(arrayBuf)`]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length
26112610
[`Buffer.from(buffer)`]: #buffer_class_method_buffer_from_buffer
26122611
[`Buffer.from(string)`]: #buffer_class_method_buffer_from_string_encoding
26132612
[`Buffer.poolSize`]: #buffer_class_property_buffer_poolsize

0 commit comments

Comments
 (0)