Skip to content

Commit

Permalink
fix spelling issues in comments (#21291)
Browse files Browse the repository at this point in the history
## Description 

external-crates/move/crates/move-vm-integration-tests/src/tests/instantiation_tests.rs
withing - within
Instantion - Instantiation

external-crates/move/crates/move-vm-runtime/src/move_vm.rs
envrionment - environment

external-crates/move/crates/move-vm-runtime/src/tracing2/tracer.rs
specifice - specific


external-crates/move/crates/move-vm-runtime/src/unit_tests/vm_arguments_tests.rs
mising - missing


external-crates/move/crates/move-vm-test-utils/src/tiered_gas_schedule.rs
contstant - constant

external-crates/move/crates/move-vm-types/src/natives/function.rs
funciton - function
  • Loading branch information
eeemmmmmm authored Feb 20, 2025
1 parent fcf4333 commit c3cf8fb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fn test_instantiation_no_instantiation() {
// Common runner for all tests.
// Run a control test (load_pop) and an instantiation test which is then
// compared against the control.
// Ensure that tests complete with "out of gas" and withing a given time range.
// Ensure that tests complete with "out of gas" and within a given time range.
fn test_runner(
gas_val: u64,
test_name: &str,
Expand Down
2 changes: 1 addition & 1 deletion external-crates/move/crates/move-vm-runtime/src/move_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl MoveVM {
/// none of them will try to publish a module. In other words, if there is a module publishing
/// Session it must be the only Session existing.
/// - In general, a new Move VM needs to be created whenever the storage gets modified by an
/// outer envrionment, or otherwise the states may be out of sync. There are a few exceptional
/// outer environment, or otherwise the states may be out of sync. There are a few exceptional
/// cases where this may not be necessary, with the most notable one being the common module
/// publishing flow: you can keep using the same Move VM if you publish some modules in a Session
/// and apply the effects to the storage when the Session ends.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl<'a> VMTracer<'a> {
std::mem::take(&mut self.effects)
}

/// Insert a local with a specifice runtime location into the current frame.
/// Insert a local with a specific runtime location into the current frame.
fn insert_local(&mut self, local_index: usize, local: RootedType) -> Option<()> {
*self
.current_frame_mut()?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ fn call_missing_item() {
let module = empty_module();
let id = &module.self_id();
let function_name = IdentStr::new("foo").unwrap();
// mising module
// missing module
let move_vm = MoveVM::new(vec![]).unwrap();
let mut remote_view = RemoteStore::new();
let mut session = move_vm.new_session(&remote_view);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ impl<'b> GasMeter for GasStatus<'b> {
) -> PartialVMResult<()> {
// We will perform `num_args` number of pops.
let num_args = args.len() as u64;
// The amount of data on the stack stays contstant except we have some extra metadata for
// The amount of data on the stack stays constant except we have some extra metadata for
// the vector to hold the length of the vector.
self.charge(1, 1, num_args, VEC_SIZE.into(), 0)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl NativeResult {

/// Failed execution. The failure is a runtime failure in the function and not an invariant
/// failure of the VM which would raise a `PartialVMError` error directly.
/// The only thing the funciton can specify is its abort code, as if it had invoked the `Abort`
/// The only thing the function can specify is its abort code, as if it had invoked the `Abort`
/// bytecode instruction
pub fn err(cost: InternalGas, abort_code: u64) -> Self {
NativeResult {
Expand Down

0 comments on commit c3cf8fb

Please sign in to comment.