From 6f36630f55efcbe5954a52ac22bbb0a378020e98 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Sun, 18 Jan 2015 19:24:26 +0100 Subject: [PATCH] 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 --- doc/api/util.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/util.markdown b/doc/api/util.markdown index 2fa1ac1e70..ac32a29c3e 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