From: Feross Aboukhadijeh Date: Wed, 27 Jan 2016 14:30:08 +0000 (+0100) Subject: fix comment X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=dbd2bc7be98ac32f7258f4b2f5e5e4886ec2bc06;p=buffer.git fix comment --- diff --git a/index.js b/index.js index 15d7c50..bbb2eff 100644 --- a/index.js +++ b/index.js @@ -413,8 +413,8 @@ function slowToString (encoding, start, end) { } } -// Even though this property is private, it shouldn't be removed because it is -// used by `is-buffer` to detect buffer instances in Safari 5-7. +// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect +// Buffer instances. Buffer.prototype._isBuffer = true Buffer.prototype.toString = function toString () {