diff --git a/src/lib.rs b/src/lib.rs index f188e023ddf..059e68e34df 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1368,13 +1368,9 @@ where } } -/// Returns a handle to this wasm instance's `WebAssembly.Module` -/// -/// Note that this is only available when the final wasm app is built with -/// `--target no-modules`, it's not recommended to rely on this API yet! This is -/// largely just an experimental addition to enable threading demos. Using this -/// may prevent your wasm module from building down the road. -#[doc(hidden)] +/// Returns a handle to this Wasm instance's `WebAssembly.Module`. +/// This is only available when the final Wasm app is built with +/// `--target no-modules` or `--target web`. pub fn module() -> JsValue { unsafe { JsValue::_new(__wbindgen_module()) } }