summaryrefslogtreecommitdiff
path: root/runtime/examples
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/examples')
-rw-r--r--runtime/examples/hello_runtime.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs
index 9ac1d0a27..db6394694 100644
--- a/runtime/examples/hello_runtime.rs
+++ b/runtime/examples/hello_runtime.rs
@@ -57,7 +57,7 @@ async fn main() -> Result<(), AnyError> {
let mut worker =
MainWorker::from_options(main_module.clone(), permissions, &options);
worker.bootstrap(&options);
- worker.execute_module(&main_module).await?;
+ worker.execute_main_module(&main_module).await?;
worker.run_event_loop(false).await?;
Ok(())
}