mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-10 22:58:18 +00:00
Renamed get_native_function to get_typed_function, marked former as deprecated.
This commit is contained in:
@@ -170,7 +170,7 @@
|
||||
//! # fn exports_example(instance: &Instance) -> anyhow::Result<()> {
|
||||
//! let memory = instance.exports.get_memory("memory")?;
|
||||
//! let memory: &Memory = instance.exports.get("some_other_memory")?;
|
||||
//! let add: TypedFunction<(i32, i32), i32> = instance.exports.get_native_function("add")?;
|
||||
//! let add: TypedFunction<(i32, i32), i32> = instance.exports.get_typed_function("add")?;
|
||||
//! let result = add.call(5, 37)?;
|
||||
//! assert_eq!(result, 42);
|
||||
//! # Ok(())
|
||||
|
||||
Reference in New Issue
Block a user