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.

PR-URL: #3790
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
evanlucas authored and jasnell committed Dec 17, 2015
1 parent 7b5e457 commit 3c415bb
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 @@ -404,6 +404,8 @@ Returns `true` if the given "object" is a primitive type. `false` otherwise.

Stability: 0 - Deprecated

Use `Buffer.isBuffer()` instead.

Returns `true` if the given "object" is a `Buffer`. `false` otherwise.

var util = require('util');
Expand Down

0 comments on commit 3c415bb

Please sign in to comment.