Skip to content

Commit 4009e3f

Browse files
ryzokukenMylesBorins
authored andcommitted
buffer: fix typo in lib/buffer.js
PR-URL: #19126 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent eae80e4 commit 4009e3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/buffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ Buffer.prototype.compare = function compare(target,
710710
// - buffer - a Buffer to search
711711
// - val - a string, Buffer, or number
712712
// - byteOffset - an index into `buffer`; will be clamped to an int32
713-
// - encoding - an optional encoding, relevant is val is a string
713+
// - encoding - an optional encoding, relevant if val is a string
714714
// - dir - true for indexOf, false for lastIndexOf
715715
function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
716716
if (typeof byteOffset === 'string') {

0 commit comments

Comments
 (0)