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:
12401240
12411241* ` value ` {string|Buffer|Uint8Array|integer} What to search for.
12421242* ` 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
12461247 ` -1 ` if ` buf ` does not contain ` value ` .
12471248
12481249If ` value ` is:
You can’t perform that action at this time.
0 commit comments