File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1240,9 +1240,10 @@ changes:
1240
1240
1241
1241
* ` value ` {string|Buffer|Uint8Array|integer} What to search for.
1242
1242
* ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 ` .
1243
- * ` encoding ` {string} The encoding of ` value ` if ` value ` is a string.
1244
- ** Default:** ` 'utf8' ` .
1245
- * Returns: {integer} The index of the first occurrence of ` value ` in ` buf ` or
1243
+ * ` encoding ` {string} If ` value ` is a string, this is the encoding used to
1244
+ determine the binary representation of the string that will be searched for in
1245
+ ` buf ` . ** Default:** ` 'utf8' ` .
1246
+ * Returns: {integer} The index of the first occurrence of ` value ` in ` buf ` , or
1246
1247
` -1 ` if ` buf ` does not contain ` value ` .
1247
1248
1248
1249
If ` value ` is:
You can’t perform that action at this time.
0 commit comments