Quick documentation fix
This commit is contained in:
parent
b3e1fd0740
commit
c956a8866e
1 changed files with 0 additions and 2 deletions
|
@ -345,8 +345,6 @@ impl PluginBuilder {
|
||||||
|
|
||||||
/// Initializes a [`Plugin`] from a given compiled Wasm module.
|
/// Initializes a [`Plugin`] from a given compiled Wasm module.
|
||||||
/// Both binary (`.wasm`) and text (`.wat`) module formats are supported.
|
/// Both binary (`.wasm`) and text (`.wat`) module formats are supported.
|
||||||
/// Will panic if this is plugin uses `PluginYield::Epoch`,
|
|
||||||
/// but an epoch incrementer has not yet been created.
|
|
||||||
pub async fn init<T: AsRef<[u8]>>(self, precompiled: bool, module: T) -> Result<Plugin, Error> {
|
pub async fn init<T: AsRef<[u8]>>(self, precompiled: bool, module: T) -> Result<Plugin, Error> {
|
||||||
Plugin::init(precompiled, module.as_ref(), self).await
|
Plugin::init(precompiled, module.as_ref(), self).await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue