mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
Fixed comments based on feedback
This commit is contained in:
6
lib/api/src/externals/global.rs
vendored
6
lib/api/src/externals/global.rs
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user