mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
better documentation for underscore pattern
This commit is contained in:
parent
e0af069645
commit
64220567e5
2 changed files with 5 additions and 1 deletions
|
@ -76,7 +76,7 @@ pub fn jit_to_ast<'a, A: ReplApp<'a>>(
|
|||
|
||||
// Put in an underscore for each of the args, just to get the arity right.
|
||||
for _ in 0..arguments.len() {
|
||||
arg_patterns.push(Loc::at_zero(Pattern::Underscore("_")));
|
||||
arg_patterns.push(Loc::at_zero(Pattern::Underscore("")));
|
||||
}
|
||||
|
||||
let body_expr = Loc::at_zero(Expr::Record(Collection::empty()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue