Fix function call on component instance (#5887)
The exported function in the instance is not called directly by its name, but by `call_<the-name>`.
This commit is contained in:
@@ -135,7 +135,7 @@ pub(crate) use self::store::ComponentStoreData;
|
||||
///
|
||||
/// // Here our `greet` function doesn't take any parameters for the component,
|
||||
/// // but in the Wasmtime embedding API the first argument is always a `Store`.
|
||||
/// bindings.greet(&mut store)?;
|
||||
/// bindings.call_greet(&mut store)?;
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user