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

View File

@ -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;
/// 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;
fn imported_functions_forms(test: &dyn Fn(&Instance)) {