Skip to content

Commit

Permalink
doc: fix util.isBuffer examples
Browse files Browse the repository at this point in the history
util.isPrimitive was used in place of util.isBuffer.

PR-URL: #496
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
tjconcept authored and bnoordhuis committed Jan 18, 2015
1 parent 3abfb56 commit 6f36630
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/util.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ Returns `true` if the given "object" is a `Buffer`. `false` otherwise.

var util = require('util');

util.isPrimitive({ length: 0 })
util.isBuffer({ length: 0 })
// false
util.isPrimitive([])
util.isBuffer([])
// false
util.isPrimitive(new Buffer('hello world'))
util.isBuffer(new Buffer('hello world'))
// true


Expand Down

0 comments on commit 6f36630

Please sign in to comment.