Fixed instantiate_streaming references

This commit is contained in:
Syrus Akbary
2018-10-24 12:36:43 +02:00
parent dfa50ddc53
commit ca6050e18b
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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<u8>,
import_object: ImportObject<&str, &str>,
) -> Result<ResultObject, ErrorKind> {