Skip to content

Commit 39b083e

Browse files
vsemozhetbytaddaleax
authored andcommitted
doc: repeat a remark as needed in the buffer.md
PR-URL: #9795 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 622690f commit 39b083e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/api/buffer.md

+6
Original file line numberDiff line numberDiff line change
@@ -2306,6 +2306,9 @@ added: v3.0.0
23062306
On 32-bit architectures, this value is `(2^30)-1` (~1GB).
23072307
On 64-bit architectures, this value is `(2^31)-1` (~2GB).
23082308

2309+
Note that this is a property on the `buffer` module as returned by
2310+
`require('buffer')`, not on the `Buffer` global or a `Buffer` instance.
2311+
23092312
## buffer.transcode(source, fromEnc, toEnc)
23102313
<!-- YAML
23112314
added: v7.1.0
@@ -2333,6 +2336,9 @@ console.log(newBuf.toString('ascii'));
23332336
Because the Euro (``) sign is not representable in US-ASCII, it is replaced
23342337
with `?` in the transcoded `Buffer`.
23352338

2339+
Note that this is a property on the `buffer` module as returned by
2340+
`require('buffer')`, not on the `Buffer` global or a `Buffer` instance.
2341+
23362342
## Class: SlowBuffer
23372343
<!-- YAML
23382344
deprecated: v6.0.0

0 commit comments

Comments
 (0)