From 93cd5c5a48e0693b4b80b8a90cd337e3567a9b21 Mon Sep 17 00:00:00 2001 From: Aidan Date: Wed, 8 Jul 2020 19:39:09 -0700 Subject: [PATCH] fix func declaration syntax --- stdlib/funcs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/funcs.go b/stdlib/funcs.go index f370e30..88aafbb 100644 --- a/stdlib/funcs.go +++ b/stdlib/funcs.go @@ -24,9 +24,9 @@ import ( func decl_func(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token { name := input - if name.Tag != ast.STRING { + if name.Tag != ast.SYMBOL { log.Log(log.ERR, - "non string handed to name arg", + "argument 1 of func must be a symbol to be exported", "func") return nil }