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>
This commit is contained in:
parent
449d1c8ea4
commit
4489a48dff
@ -722,7 +722,7 @@ Buffer.prototype.compare = function compare(target,
|
|||||||
// - buffer - a Buffer to search
|
// - buffer - a Buffer to search
|
||||||
// - val - a string, Buffer, or number
|
// - val - a string, Buffer, or number
|
||||||
// - byteOffset - an index into `buffer`; will be clamped to an int32
|
// - 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
|
// - dir - true for indexOf, false for lastIndexOf
|
||||||
function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
|
function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
|
||||||
if (typeof byteOffset === 'string') {
|
if (typeof byteOffset === 'string') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user