Fixed comments based on feedback

This commit is contained in:
Syrus
2020-07-15 18:04:13 -07:00
parent 7bf6b9efc9
commit 0c13173624
8 changed files with 17 additions and 11 deletions

View File

@@ -8,10 +8,10 @@ use crate::RuntimeError;
use std::fmt;
use wasmer_vm::{Export, ExportGlobal, VMGlobalDefinition};
/// A WebAssembly `global`.
/// A WebAssembly `global` instance.
///
/// A global instance is the runtime representation of a global variable.
/// It holds an individual value and a flag indicating whether it is mutable.
/// It consists of an individual value and a flag indicating whether it is mutable.
///
/// Spec: https://webassembly.github.io/spec/core/exec/runtime.html#global-instances
#[derive(Clone)]
@@ -65,7 +65,7 @@ impl Global {
&self.exported.global
}
/// Returns the [`Store`] that owns this `Global`.
/// Returns the [`Store`] where the `Global` belongs.
pub fn store(&self) -> &Store {
&self.store
}