From 7cb3a5427da2ecc0c119264e7456f88df96096b9 Mon Sep 17 00:00:00 2001 From: Evan Lucas Date: Thu, 12 Nov 2015 06:29:27 -0600 Subject: [PATCH] doc: add note to util.isBuffer Since util.isBuffer is deprecated, we should be explicit that Buffer.isBuffer should be used instead. PR-URL: https://github.com/nodejs/node/pull/3790 Reviewed-By: Jeremiah Senkpiel Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/util.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/util.markdown b/doc/api/util.markdown index 9914deb48050db..8ac0e0ef8467d9 100644 --- a/doc/api/util.markdown +++ b/doc/api/util.markdown @@ -404,6 +404,8 @@ Returns `true` if the given "object" is a primitive type. `false` otherwise. Stability: 0 - Deprecated +Use `Buffer.isBuffer()` instead. + Returns `true` if the given "object" is a `Buffer`. `false` otherwise. var util = require('util');