aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/hello-world
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello-world')
-rw-r--r--examples/hello-world/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hello-world/index.php b/examples/hello-world/index.php
index 9b0b1bd..6129a07 100644
--- a/examples/hello-world/index.php
+++ b/examples/hello-world/index.php
@@ -30,6 +30,6 @@ $linker = new Linker($store);
$linker->register('', 'putc', Extern::Func(FuncInst::Host(new FuncType([ValType::I32], []), function (Runtime $runtime, int $c) { printf('%c', $c); })));
-$runtime = Runtime::instantiate($store, $module, $linker->resolve($module));
+$runtime = Runtime::instantiate($module, $linker);
$runtime->invoke('main', []);