Skip to content

Commit 6f36630

Browse files
tjconceptbnoordhuis
authored andcommitted
doc: fix util.isBuffer examples
util.isPrimitive was used in place of util.isBuffer. PR-URL: #496 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 3abfb56 commit 6f36630

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/util.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,11 @@ Returns `true` if the given "object" is a `Buffer`. `false` otherwise.
389389

390390
var util = require('util');
391391

392-
util.isPrimitive({ length: 0 })
392+
util.isBuffer({ length: 0 })
393393
// false
394-
util.isPrimitive([])
394+
util.isBuffer([])
395395
// false
396-
util.isPrimitive(new Buffer('hello world'))
396+
util.isBuffer(new Buffer('hello world'))
397397
// true
398398

399399

0 commit comments

Comments
 (0)