Skip to content

Commit

Permalink
Fix deserialize calls in doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort authored and theduke committed May 31, 2023
1 parent 554b202 commit 335bbbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/api/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ impl Module {
/// a malicious actor could inject code into executable
/// memory.
///
/// And as such, the `deserialize` method is unsafe.
/// And as such, the `deserialize_unchecked` method is unsafe.
///
/// # Usage
///
/// ```ignore
/// # use wasmer::*;
/// # fn main() -> anyhow::Result<()> {
/// # let mut store = Store::default();
/// let module = Module::deserialize(&store, serialized_data)?;
/// let module = Module::deserialize_unchecked(&store, serialized_data)?;
/// # Ok(())
/// # }
/// ```
Expand Down Expand Up @@ -300,7 +300,7 @@ impl Module {
/// # use wasmer::*;
/// # let mut store = Store::default();
/// # fn main() -> anyhow::Result<()> {
/// let module = Module::deserialize_from_file_checked(&store, path)?;
/// let module = Module::deserialize_from_file(&store, path)?;
/// # Ok(())
/// # }
/// ```
Expand Down

0 comments on commit 335bbbc

Please sign in to comment.