From 388a96421be1ae25f6f3049e4d8665e5a8ba490e Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 7 Sep 2017 04:40:06 -0700 Subject: [PATCH] Add documentation comments to GlobalValue's fields. --- lib/wasm/src/runtime/spec.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/wasm/src/runtime/spec.rs b/lib/wasm/src/runtime/spec.rs index e7cbb1ec91..9f093e9a07 100644 --- a/lib/wasm/src/runtime/spec.rs +++ b/lib/wasm/src/runtime/spec.rs @@ -12,7 +12,12 @@ pub enum GlobalValue { Const(ir::Value), /// This is a variable in memory that should be referenced as a `GlobalVar`. - Memory { gv: ir::GlobalVar, ty: ir::Type }, + Memory { + /// Which global variable should be referenced. + gv: ir::GlobalVar, + /// The global variable's type. + ty: ir::Type, + }, } /// Environment affecting the translation of a single WebAssembly function.