Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9ca7c86

Browse filesBrowse files
Trotttargos
authored andcommitted
doc: remove "note that" from buffer.md
Refs: nodejs/remark-preset-lint-node#16 PR-URL: #28329 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 658c758 commit 9ca7c86
Copy full SHA for 9ca7c86

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.md‎

Copy file name to clipboardExpand all lines: doc/api/buffer.md
+8-8Lines changed: 8 additions & 8 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ console.log(buf2);
250250
// Prints: <Buffer 88 13 70 17>
251251
```
252252

253-
Note that when creating a `Buffer` using a [`TypedArray`][]'s `.buffer`, it is
253+
When creating a `Buffer` using a [`TypedArray`][]'s `.buffer`, it is
254254
possible to use only a portion of the underlying [`ArrayBuffer`][] by passing in
255255
`byteOffset` and `length` parameters.
256256

@@ -597,7 +597,7 @@ console.log(buf);
597597

598598
A `TypeError` will be thrown if `size` is not a number.
599599

600-
Note that the `Buffer` module pre-allocates an internal `Buffer` instance of
600+
The `Buffer` module pre-allocates an internal `Buffer` instance of
601601
size [`Buffer.poolSize`][] that is used as a pool for the fast allocation of new
602602
`Buffer` instances created using [`Buffer.allocUnsafe()`][] and the deprecated
603603
`new Buffer(size)` constructor only when `size` is less than or equal to
@@ -1501,7 +1501,7 @@ added: v0.1.90
15011501

15021502
* {integer}
15031503

1504-
Returns the amount of memory allocated for `buf` in bytes. Note that this
1504+
Returns the amount of memory allocated for `buf` in bytes. This
15051505
does not necessarily reflect the amount of "usable" data within `buf`.
15061506

15071507
```js
@@ -2087,7 +2087,7 @@ buf2.swap64();
20872087
// Throws ERR_INVALID_BUFFER_SIZE.
20882088
```
20892089

2090-
Note that JavaScript cannot encode 64-bit integers. This method is intended
2090+
JavaScript cannot encode 64-bit integers. This method is intended
20912091
for working with 64-bit floats.
20922092

20932093
### buf.toJSON()
@@ -2623,7 +2623,7 @@ Returns the maximum number of bytes that will be returned when
26232623
`buf.inspect()` is called. This can be overridden by user modules. See
26242624
[`util.inspect()`][] for more details on `buf.inspect()` behavior.
26252625

2626-
Note that this is a property on the `buffer` module returned by
2626+
This is a property on the `buffer` module returned by
26272627
`require('buffer')`, not on the `Buffer` global or a `Buffer` instance.
26282628

26292629
## buffer.kMaxLength
@@ -2635,7 +2635,7 @@ added: v3.0.0
26352635

26362636
An alias for [`buffer.constants.MAX_LENGTH`][].
26372637

2638-
Note that this is a property on the `buffer` module returned by
2638+
This is a property on the `buffer` module returned by
26392639
`require('buffer')`, not on the `Buffer` global or a `Buffer` instance.
26402640

26412641
## buffer.transcode(source, fromEnc, toEnc)
@@ -2675,7 +2675,7 @@ console.log(newBuf.toString('ascii'));
26752675
Because the Euro (``) sign is not representable in US-ASCII, it is replaced
26762676
with `?` in the transcoded `Buffer`.
26772677

2678-
Note that this is a property on the `buffer` module returned by
2678+
This is a property on the `buffer` module returned by
26792679
`require('buffer')`, not on the `Buffer` global or a `Buffer` instance.
26802680

26812681
## Class: SlowBuffer
@@ -2753,7 +2753,7 @@ console.log(buf);
27532753
added: v8.2.0
27542754
-->
27552755

2756-
Note that `buffer.constants` is a property on the `buffer` module returned by
2756+
`buffer.constants` is a property on the `buffer` module returned by
27572757
`require('buffer')`, not on the `Buffer` global or a `Buffer` instance.
27582758

27592759
### buffer.constants.MAX_LENGTH

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.