Minor code and docs refactor.

This commit is contained in:
Stephen Chung
2021-11-28 22:57:28 +08:00
parent dca47d5233
commit 9fa4d60336
13 changed files with 175 additions and 127 deletions

View File

@@ -226,7 +226,7 @@ impl Engine {
return Ok(Dynamic::UNIT);
}
let lib = &[ast.lib()];
let lib = &[ast.as_ref()];
self.eval_global_statements(scope, mods, &mut state, statements, lib, level)
}
}