Skip to content

Commit 6d17383

Browse files
ryzokukenaddaleax
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 a4462b7 commit 6d17383

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
@@ -742,7 +742,7 @@ Buffer.prototype.compare = function compare(target,
742742
// - buffer - a Buffer to search
743743
// - val - a string, Buffer, or number
744744
// - byteOffset - an index into `buffer`; will be clamped to an int32
745-
// - encoding - an optional encoding, relevant is val is a string
745+
// - encoding - an optional encoding, relevant if val is a string
746746
// - dir - true for indexOf, false for lastIndexOf
747747
function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
748748
if (typeof byteOffset === 'string') {

0 commit comments

Comments
 (0)