Skip to content

Commit

Permalink
off by one in arity checker for language server
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwparas committed Dec 27, 2023
1 parent dab1e7e commit 6a39b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/steel-language-server/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ impl<'a, 'b> VisitorMutUnitRef<'a> for StaticCallSiteArityChecker<'a, 'b> {
}
}
Some(Arity::AtLeast(arity)) => {
if l.args.len() <= arity + 1 {
if l.args.len() < arity + 1 {
let span =
l.first().unwrap().atom_syntax_object().unwrap().span;

Expand Down

0 comments on commit 6a39b30

Please sign in to comment.