diff --git a/src/webassembly/instance.rs b/src/webassembly/instance.rs index b900dbaee..12f804cbf 100644 --- a/src/webassembly/instance.rs +++ b/src/webassembly/instance.rs @@ -5,7 +5,7 @@ //! The webassembly::Instance() constructor function can be called to //! synchronously instantiate a given webassembly::Module object. However, the //! primary way to get an Instance is through the asynchronous -//! webassembly::instantiateStreaming() function. +//! webassembly::instantiate_streaming() function. use cranelift_codegen::ir::LibCall; use cranelift_codegen::{binemit, isa, Context}; use cranelift_entity::EntityRef; diff --git a/src/webassembly/mod.rs b/src/webassembly/mod.rs index 7b21bce4d..9fed50613 100644 --- a/src/webassembly/mod.rs +++ b/src/webassembly/mod.rs @@ -54,10 +54,10 @@ pub fn instantiate( Ok(ResultObject { module, instance }) } -/// The webassembly::instantiateStreaming() function compiles and instantiates +/// The webassembly::instantiate_streaming() function compiles and instantiates /// a WebAssembly module directly from a streamed underlying source. /// This is the most efficient, optimized way to load wasm code. -pub fn instantiateStreaming( +pub fn instantiate_streaming( buffer_source: Vec, import_object: ImportObject<&str, &str>, ) -> Result {