From 4009e3f245683a33ac462dc53d64c093550cf974 Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma Date: Sun, 4 Mar 2018 13:54:17 +0530 Subject: [PATCH] buffer: fix typo in lib/buffer.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: /~https://github.com/nodejs/node/pull/19126 Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil Reviewed-By: Anatoli Papirovski Reviewed-By: Richard Lau Reviewed-By: Vse Mozhet Byt Reviewed-By: Tobias Nießen --- lib/buffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/buffer.js b/lib/buffer.js index 6d28e84bc7ff3d..a6e66de671945d 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -710,7 +710,7 @@ Buffer.prototype.compare = function compare(target, // - buffer - a Buffer to search // - val - a string, Buffer, or number // - byteOffset - an index into `buffer`; will be clamped to an int32 -// - encoding - an optional encoding, relevant is val is a string +// - encoding - an optional encoding, relevant if val is a string // - dir - true for indexOf, false for lastIndexOf function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) { if (typeof byteOffset === 'string') {