Rename FnWrongDefinition to WrongFnDefinition.

This commit is contained in:
Stephen Chung
2021-03-30 11:39:00 +08:00
parent d2ded7733a
commit d756b7bac6
5 changed files with 6 additions and 5 deletions

View File

@@ -866,7 +866,7 @@ impl Engine {
// If new functions are defined within the eval string, it is an error
if ast.lib().count().0 != 0 {
return Err(ParseErrorType::FnWrongDefinition.into());
return Err(ParseErrorType::WrongFnDefinition.into());
}
// Evaluate the AST