Skip to content

Commit 0fbc427

Browse files
ryzokukenMayaLekova
authored andcommittedMay 8, 2018
buffer: fix typo in lib/buffer.js
PR-URL: nodejs#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>
1 parent b504abb commit 0fbc427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/buffer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ Buffer.prototype.compare = function compare(target,
722722
// - buffer - a Buffer to search
723723
// - val - a string, Buffer, or number
724724
// - byteOffset - an index into `buffer`; will be clamped to an int32
725-
// - encoding - an optional encoding, relevant is val is a string
725+
// - encoding - an optional encoding, relevant if val is a string
726726
// - dir - true for indexOf, false for lastIndexOf
727727
function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
728728
if (typeof byteOffset === 'string') {

0 commit comments

Comments
 (0)