File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ module ErrorMessages = struct
7474 Explanation: such spread would create a subarray; out of performance \
7575 concern, our pattern matching currently guarantees to never create new \
7676 intermediate data.\n \
77- Solution: if it's to validate the first few elements, use a `when ` clause \
78- + Array size check + `get` checks on the current pattern. If it's to \
79- obtain a subarray, use `Array.sub` or `Belt.Array. slice`."
77+ Solution: if it's to validate the first few elements, use an `if ` clause \
78+ + Array length check + `get` checks on the current pattern. If it's to \
79+ obtain a subarray, use `Array.slice`."
8080
8181 let record_expr_spread =
8282 " Records can only have one `...` spread, at the beginning.\n \
You can’t perform that action at this time.
0 commit comments