From feb8a6c7053cc5e0202088f6a1f7644316e1ad05 Mon Sep 17 00:00:00 2001 From: vuittont60 <81072379+vuittont60@users.noreply.github.com> Date: Thu, 19 Oct 2023 22:11:13 +0800 Subject: [PATCH] fix: fix typos (#226) --- core/lib/multivm/src/versions/vm_1_3_2/oracles/precompile.rs | 2 +- core/lib/multivm/src/versions/vm_1_3_2/tests/bootloader.rs | 2 +- .../src/versions/vm_latest/old_vm/oracles/precompile.rs | 2 +- core/lib/multivm/src/versions/vm_m5/oracles/precompile.rs | 2 +- core/lib/multivm/src/versions/vm_m5/tests/bootloader.rs | 2 +- core/lib/multivm/src/versions/vm_m6/oracles/precompile.rs | 2 +- core/lib/multivm/src/versions/vm_m6/tests/bootloader.rs | 2 +- .../versions/vm_virtual_blocks/old_vm/oracles/precompile.rs | 2 +- docs/advanced/prover.md | 4 ++-- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/lib/multivm/src/versions/vm_1_3_2/oracles/precompile.rs b/core/lib/multivm/src/versions/vm_1_3_2/oracles/precompile.rs index c856df786d88..0693fac6d60e 100644 --- a/core/lib/multivm/src/versions/vm_1_3_2/oracles/precompile.rs +++ b/core/lib/multivm/src/versions/vm_1_3_2/oracles/precompile.rs @@ -58,7 +58,7 @@ impl PrecompilesProcessor for PrecompilesProcesso ) -> Option<(Vec, Vec, PrecompileCyclesWitness)> { // In the next line we same `query.timestamp` as both // an operation in the history of precompiles processor and - // the time when this operation occured. + // the time when this operation occurred. // While slightly weird, it is done for consistency with other oracles // where operations and timestamp have different types. self.timestamp_history diff --git a/core/lib/multivm/src/versions/vm_1_3_2/tests/bootloader.rs b/core/lib/multivm/src/versions/vm_1_3_2/tests/bootloader.rs index 10e7620dd4b3..da9087afedd1 100644 --- a/core/lib/multivm/src/versions/vm_1_3_2/tests/bootloader.rs +++ b/core/lib/multivm/src/versions/vm_1_3_2/tests/bootloader.rs @@ -673,7 +673,7 @@ // }; // if test_info.should_rollback() { -// // Some error has occured, we should reject the transaction +// // Some error has occurred, we should reject the transaction // vm.rollback_to_latest_snapshot(); // // vm_state_before_tx. diff --git a/core/lib/multivm/src/versions/vm_latest/old_vm/oracles/precompile.rs b/core/lib/multivm/src/versions/vm_latest/old_vm/oracles/precompile.rs index 96786cf24e02..5566595108be 100644 --- a/core/lib/multivm/src/versions/vm_latest/old_vm/oracles/precompile.rs +++ b/core/lib/multivm/src/versions/vm_latest/old_vm/oracles/precompile.rs @@ -58,7 +58,7 @@ impl PrecompilesProcessor for PrecompilesProcesso ) -> Option<(Vec, Vec, PrecompileCyclesWitness)> { // In the next line we same `query.timestamp` as both // an operation in the history of precompiles processor and - // the time when this operation occured. + // the time when this operation occurred. // While slightly weird, it is done for consistency with other oracles // where operations and timestamp have different types. self.timestamp_history diff --git a/core/lib/multivm/src/versions/vm_m5/oracles/precompile.rs b/core/lib/multivm/src/versions/vm_m5/oracles/precompile.rs index 853ce7d8cec0..137a1046d48d 100644 --- a/core/lib/multivm/src/versions/vm_m5/oracles/precompile.rs +++ b/core/lib/multivm/src/versions/vm_m5/oracles/precompile.rs @@ -61,7 +61,7 @@ impl PrecompilesProcessor for PrecompilesProcessorWithHistory ) -> Option<(Vec, Vec, PrecompileCyclesWitness)> { // In the next line we same `query.timestamp` as both // an operation in the history of precompiles processor and - // the time when this operation occured. + // the time when this operation occurred. // While slightly weird, it is done for consistency with other oracles // where operations and timestamp have different types. self.timestamp_history diff --git a/core/lib/multivm/src/versions/vm_m5/tests/bootloader.rs b/core/lib/multivm/src/versions/vm_m5/tests/bootloader.rs index e3ef3f991b83..1034e8595936 100644 --- a/core/lib/multivm/src/versions/vm_m5/tests/bootloader.rs +++ b/core/lib/multivm/src/versions/vm_m5/tests/bootloader.rs @@ -624,7 +624,7 @@ // }; // if test_info.should_rollback() { -// // Some error has occured, we should reject the transaction +// // Some error has occurred, we should reject the transaction // vm.rollback_to_latest_snapshot(); // // vm_state_before_tx. diff --git a/core/lib/multivm/src/versions/vm_m6/oracles/precompile.rs b/core/lib/multivm/src/versions/vm_m6/oracles/precompile.rs index bb7f9f568191..aff382614af0 100644 --- a/core/lib/multivm/src/versions/vm_m6/oracles/precompile.rs +++ b/core/lib/multivm/src/versions/vm_m6/oracles/precompile.rs @@ -58,7 +58,7 @@ impl PrecompilesProcessor for PrecompilesProcesso ) -> Option<(Vec, Vec, PrecompileCyclesWitness)> { // In the next line we same `query.timestamp` as both // an operation in the history of precompiles processor and - // the time when this operation occured. + // the time when this operation occurred. // While slightly weird, it is done for consistency with other oracles // where operations and timestamp have different types. self.timestamp_history diff --git a/core/lib/multivm/src/versions/vm_m6/tests/bootloader.rs b/core/lib/multivm/src/versions/vm_m6/tests/bootloader.rs index 26fe03453225..be840e16a142 100644 --- a/core/lib/multivm/src/versions/vm_m6/tests/bootloader.rs +++ b/core/lib/multivm/src/versions/vm_m6/tests/bootloader.rs @@ -626,7 +626,7 @@ // }; // if test_info.should_rollback() { -// // Some error has occured, we should reject the transaction +// // Some error has occurred, we should reject the transaction // vm.rollback_to_latest_snapshot(); // // vm_state_before_tx. diff --git a/core/lib/multivm/src/versions/vm_virtual_blocks/old_vm/oracles/precompile.rs b/core/lib/multivm/src/versions/vm_virtual_blocks/old_vm/oracles/precompile.rs index 03f96ec9e622..11ddb26d03a1 100644 --- a/core/lib/multivm/src/versions/vm_virtual_blocks/old_vm/oracles/precompile.rs +++ b/core/lib/multivm/src/versions/vm_virtual_blocks/old_vm/oracles/precompile.rs @@ -60,7 +60,7 @@ impl PrecompilesProcessor for PrecompilesProcesso ) -> Option<(Vec, Vec, PrecompileCyclesWitness)> { // In the next line we same `query.timestamp` as both // an operation in the history of precompiles processor and - // the time when this operation occured. + // the time when this operation occurred. // While slightly weird, it is done for consistency with other oracles // where operations and timestamp have different types. self.timestamp_history diff --git a/docs/advanced/prover.md b/docs/advanced/prover.md index e20c8ddb8d6a..02e69c4d38e2 100644 --- a/docs/advanced/prover.md +++ b/docs/advanced/prover.md @@ -214,7 +214,7 @@ it can be used as 'a' or 'b' in the Select gate example above). ### CSVarLengthEncodable -Implements CircuitVarLengthEncodable - which allows encoding the struct into a vector of varaibles (think about it as +Implements CircuitVarLengthEncodable - which allows encoding the struct into a vector of variables (think about it as serializing to Bytes). ### Summary @@ -401,7 +401,7 @@ And we'll run it over all the operands: out_of_circuit_vm .cycle(&mut tracer) - .expect("cycle should finish succesfully"); + .expect("cycle should finish successfully"); } ```