Skip to content

Commit 6ddf6bb

Browse files
committed
doc: add note to util.isBuffer
Since util.isBuffer is deprecated, we should be explicit that Buffer.isBuffer should be used instead.
1 parent 7b45163 commit 6ddf6bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/util.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ Returns `true` if the given "object" is a `Buffer`. `false` otherwise.
415415
util.isBuffer(new Buffer('hello world'))
416416
// true
417417

418+
Use `Buffer.isBuffer()` instead.
419+
418420
## util.inherits(constructor, superConstructor)
419421

420422
Inherit the prototype methods from one

0 commit comments

Comments
 (0)