Skip to content

Commit 6c5e3f7

Browse files
author
kutyel
committed
Fix pattern match
1 parent 7f8fd02 commit 6c5e3f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jscomp/others/belt_Array.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ let reduceReverse2 a b x f =
364364

365365
let rec reduceWithIndexAuxU a acc f i =
366366
match a with
367-
| [] -> acc
367+
| [||] -> acc
368368
| x::xs -> reduceWithIndexAuxU xs ((f acc x i)[@bs]) f (i + 1)
369369

370370
let reduceWithIndexU a acc f = reduceWithIndexAuxU a acc f 0

0 commit comments

Comments
 (0)