Skip to content

Commit a134663

Browse files
committed
evaluator: Fix builtin name typo
Fix builtin "rand1" name typo. This only showed up in an error message.
1 parent c3e485d commit a134663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/evaluator/builtin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ func randFunc(_ *scope, args []value) (value, error) {
696696
}
697697

698698
var rand1Decl = &parser.FuncDefStmt{
699-
Name: "rand",
699+
Name: "rand1",
700700
Params: []*parser.Var{},
701701
ReturnType: parser.NUM_TYPE,
702702
}

0 commit comments

Comments
 (0)