From d42560c7bfecab2c55689a813a0bd63ce065216c Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Fri, 7 Feb 2020 17:41:20 -0500 Subject: [PATCH] specify units for fields of `Tunables` (#930) ...since the documentation in `impl Default for Tunables` doesn't get translated anywhere, and the various fields have different units anyway. --- crates/environ/src/tunables.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/environ/src/tunables.rs b/crates/environ/src/tunables.rs index 20ddf7d2a4..64032f1ddc 100644 --- a/crates/environ/src/tunables.rs +++ b/crates/environ/src/tunables.rs @@ -1,13 +1,13 @@ /// Tunable parameters for WebAssembly compilation. #[derive(Clone)] pub struct Tunables { - /// For static heaps, the size of the heap protected by bounds checking. + /// For static heaps, the size in wasm pages of the heap protected by bounds checking. pub static_memory_bound: u32, - /// The size of the offset guard for static heaps. + /// The size in bytes of the offset guard for static heaps. pub static_memory_offset_guard_size: u64, - /// The size of the offset guard for dynamic heaps. + /// The size in bytes of the offset guard for dynamic heaps. pub dynamic_memory_offset_guard_size: u64, }