mirror of
https://github.com/samsonjs/lake.git
synced 2026-04-27 14:57:43 +00:00
if special form requires exactly 3 args
This commit is contained in:
parent
9161ca8c5d
commit
7eb66463b0
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ static LakeVal *_lambda(Env *env, LakeList *expr)
|
||||||
|
|
||||||
static LakeVal *_if(Env *env, LakeList *expr)
|
static LakeVal *_if(Env *env, LakeList *expr)
|
||||||
{
|
{
|
||||||
if (LIST_N(expr) < 3) {
|
if (LIST_N(expr) != 3) {
|
||||||
invalid_special_form(expr, "if requires 3 parameters");
|
invalid_special_form(expr, "if requires 3 parameters");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue