mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-27 07:31:33 +00:00
Documentation and style in runtime
This commit is contained in:
@ -14,7 +14,7 @@ use crate::{
|
||||
use hashbrown::HashMap;
|
||||
use std::rc::Rc;
|
||||
|
||||
/// This is used to instantiate a new webassembly module.
|
||||
/// This is used to instantiate a new WebAssembly module.
|
||||
#[doc(hidden)]
|
||||
pub struct ModuleInner {
|
||||
pub func_resolver: Box<dyn FuncResolver>,
|
||||
@ -47,7 +47,7 @@ impl Module {
|
||||
Module(inner)
|
||||
}
|
||||
|
||||
/// Instantiate a webassembly module with the provided imports.
|
||||
/// Instantiate a WebAssembly module with the provided imports.
|
||||
pub fn instantiate(&self, imports: Imports) -> Result<Instance> {
|
||||
Instance::new(Rc::clone(&self.0), Box::new(imports))
|
||||
}
|
||||
|
Reference in New Issue
Block a user