aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorUjjwal Sharma <usharma1998@gmail.com>2018-03-04 13:54:17 +0530
committerTobias Nießen <tniessen@tnie.de>2018-03-04 12:16:13 +0100
commit4489a48dff3f44ee570a9dde6bb2428bd810b03d (patch)
treedb9a19ce007adc14dcfdf10abaf1337906047184 /lib
parent449d1c8ea4747b14bc09e39a0ed51bb285062d37 (diff)
downloadandroid-node-v8-4489a48dff3f44ee570a9dde6bb2428bd810b03d.tar.gz
android-node-v8-4489a48dff3f44ee570a9dde6bb2428bd810b03d.tar.bz2
android-node-v8-4489a48dff3f44ee570a9dde6bb2428bd810b03d.zip
buffer: fix typo in lib/buffer.js
PR-URL: https://github.com/nodejs/node/pull/19126 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/buffer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.js b/lib/buffer.js
index ead43b453d..593e10d741 100644
--- a/lib/buffer.js
+++ b/lib/buffer.js
@@ -722,7 +722,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') {