doc: fix util.isBuffer examples

util.isPrimitive was used in place of util.isBuffer.

PR-URL: https://github.com/iojs/io.js/pull/496
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Thomas Jensen
2015-01-18 19:24:26 +01:00
committed by Ben Noordhuis
parent 3abfb56f9b
commit 6f36630f55

View File

@@ -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