1
0
mirror of https://github.com/fluencelabs/wasmer synced 2025-03-31 23:11:04 +00:00

test(runtime-core) Write more documentation.

This commit is contained in:
Ivan Enderlin 2019-11-04 21:59:18 +01:00
parent 293b71ac54
commit a9e0e9baeb

@ -55,7 +55,14 @@ macro_rules! call_and_assert {
}; };
} }
/// The shift that is set in the instance memory. The value is part of
/// the result returned by the imported functions if the memory is
/// read properly.
const SHIFT: i32 = 10; const SHIFT: i32 = 10;
/// The shift that is captured in the environment of a closure. The
/// value is part of the result returned by the imported function if
/// the closure captures its environment properly.
const shift: i32 = 100; const shift: i32 = 100;
fn imported_functions_forms(test: &dyn Fn(&Instance)) { fn imported_functions_forms(test: &dyn Fn(&Instance)) {