summaryrefslogtreecommitdiff
path: root/bytes/bytes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'bytes/bytes.ts')
-rw-r--r--bytes/bytes.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/bytes/bytes.ts b/bytes/bytes.ts
index ef333288e..080ec4445 100644
--- a/bytes/bytes.ts
+++ b/bytes/bytes.ts
@@ -22,7 +22,7 @@ export function bytesFindIndex(a: Uint8Array, pat: Uint8Array): number {
}
/** Find last index of binary pattern from a. If not found, then return -1 **/
-export function bytesFindLastIndex(a: Uint8Array, pat: Uint8Array) {
+export function bytesFindLastIndex(a: Uint8Array, pat: Uint8Array): number {
const e = pat[pat.length - 1];
for (let i = a.length - 1; i >= 0; i--) {
if (a[i] !== e) continue;