From 8e9767cf532ac8abd823f3b45a7dd1801b944201 Mon Sep 17 00:00:00 2001 From: Mackenzie Clark Date: Mon, 29 Apr 2019 11:18:53 -0700 Subject: [PATCH] Update examples/plugin.rs Co-Authored-By: MarkMcCaskey --- examples/plugin.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/plugin.rs b/examples/plugin.rs index 05b8d501f..78f149720 100644 --- a/examples/plugin.rs +++ b/examples/plugin.rs @@ -26,6 +26,7 @@ fn main() { // get a reference to the function "plugin_entrypoint" which takes an i32 and returns an i32 let entry_point = instance.func::<(i32), i32>("plugin_entrypoint").unwrap(); + // call the "entry_point" function in WebAssembly with the number "2" as the i32 argument let result = entry_point.call(2).expect("failed to execute plugin"); println!("result: {}", result); }