Skip to content

Commit 4489a48

Browse files
ryzokukentniessen
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 449d1c8 commit 4489a48

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
@@ -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)