1
0
forked from M-Labs/nac3

nac3standalone: fix error message when no entry point is found

This commit is contained in:
ychenfo 2021-11-22 14:52:52 +08:00
parent 01b51b62ee
commit c6f75c8bde

View File

@ -103,7 +103,7 @@ fn main() {
let mut instance =
defs[resolver
.get_identifier_def("run".into())
.unwrap_or_else(|| panic!("cannot find `run() -> int32 entry point`")).0
.unwrap_or_else(|| panic!("cannot find run() entry point")).0
].write();
if let TopLevelDef::Function {
instance_to_stmt,