Skip to content

Commit

Permalink
doc: add note to util.isBuffer
Browse files Browse the repository at this point in the history
Since util.isBuffer is deprecated, we should be explicit that
Buffer.isBuffer should be used instead.
  • Loading branch information
evanlucas committed Nov 12, 2015
1 parent 7b45163 commit 6ddf6bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/util.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ Returns `true` if the given "object" is a `Buffer`. `false` otherwise.
util.isBuffer(new Buffer('hello world'))
// true

Use `Buffer.isBuffer()` instead.

## util.inherits(constructor, superConstructor)

Inherit the prototype methods from one
Expand Down

0 comments on commit 6ddf6bb

Please sign in to comment.