Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some minor Config doc issues #673

Merged
merged 1 commit into from
Feb 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions crates/wasmi/src/engine/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl Config {
///
/// Enabled by default.
///
/// [`multi-value`]: https://github.com/WebAssembly/bulk-memory-operations
/// [`bulk-memory`]: https://github.com/WebAssembly/bulk-memory-operations
pub fn wasm_bulk_memory(&mut self, enable: bool) -> &mut Self {
self.bulk_memory = enable;
self
Expand All @@ -195,17 +195,13 @@ impl Config {
///
/// Enabled by default.
///
/// [`multi-value`]: https://github.com/WebAssembly/reference-types
/// [`reference-types`]: https://github.com/WebAssembly/reference-types
pub fn wasm_reference_types(&mut self, enable: bool) -> &mut Self {
self.reference_types = enable;
self
}

/// Enable or disable Wasm instructions on `f32` and `f64` types.
///
/// # Note
///
/// This can be used to disallow floating-point operators and types.
/// Enable or disable Wasm floating point (`f32` and `f64`) instructions and types.
///
/// Enabled by default.
pub fn floats(&mut self, enable: bool) -> &mut Self {
Expand Down