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:
Volker Mische
2023-02-27 16:10:56 +01:00
committed by GitHub
parent 3864286596
commit 6f64e39dda

View File

@@ -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(())
/// }
/// ```