Skip to content

Commit

Permalink
fixes #735: copy paste typo (#741)
Browse files Browse the repository at this point in the history
* fixes #735: copy paste typo

* aligment with Clippy
  • Loading branch information
behkod committed Jul 26, 2023
1 parent 4860ecc commit e5fdb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasmi/src/module/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl Module {
}
/// Returns the number of non-imported global variables of the [`Module`].
pub(crate) fn len_globals(&self) -> usize {
self.memories.len()
self.globals.len()
}

/// Returns a slice to the function types of the [`Module`].
Expand Down

0 comments on commit e5fdb7f

Please sign in to comment.