diff --git a/doc/api/util.markdown b/doc/api/util.markdown index 2fa1ac1e7025b2..ac32a29c3e9627 100644 --- a/doc/api/util.markdown +++ b/doc/api/util.markdown @@ -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