Skip to content

Commit

Permalink
fix indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
bhansconnect committed Nov 21, 2023
1 parent a6cde11 commit 18040cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/compiler/exhaustive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ fn specialize_row_with_polymorphic_list(
let (patterns_before, patterns_after) = match polymorphic_list_ctor {
ListArity::Slice(before, after) => (
&list_element_patterns[..before],
&list_element_patterns[after..],
&list_element_patterns[list_element_patterns.len() - after..],
),
ListArity::Exact(_) => (list_element_patterns, &[] as &[Pattern]),
};
Expand Down

0 comments on commit 18040cc

Please sign in to comment.