lang: funcs: core: Make module names public
This is needed for when we have nested modules.
This commit is contained in:
@@ -26,7 +26,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
simple.ModuleRegister(moduleName, "pow", &types.FuncValue{
|
||||
simple.ModuleRegister(ModuleName, "pow", &types.FuncValue{
|
||||
T: types.NewType("func(x float, y float) float"),
|
||||
V: Pow,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user