Skip to content

Commit cc576a3

Browse files
authored
fix typos (#10632)
Hello, I fixed some typos in the code.
1 parent e971b09 commit cc576a3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

move-bytecode-verifier/src/reference_safety/abstract_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ impl AbstractState {
535535
}
536536
}
537537

538-
// Check mutable references can be transfered
538+
// Check mutable references can be transferred
539539
let mut all_references_to_borrow_from = BTreeSet::new();
540540
let mut mutable_references_to_borrow_from = BTreeSet::new();
541541
for id in arguments.iter().filter_map(|v| v.ref_id()) {
@@ -611,7 +611,7 @@ impl AbstractState {
611611
));
612612
}
613613

614-
// Check mutable references can be transfered
614+
// Check mutable references can be transferred
615615
for id in values.into_iter().filter_map(|v| v.ref_id()) {
616616
if self.borrow_graph.is_mutable(id) && !self.is_writable(id) {
617617
return Err(self.error(StatusCode::RET_BORROWED_MUTABLE_REFERENCE_ERROR, offset));

move-vm/runtime/src/move_vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl MoveVM {
4343
/// Right now it is the caller's responsibility to ensure cache coherence of the Move VM Loader
4444
/// - When a module gets published in a Move VM Session, and then gets used by another
4545
/// transaction, it will be loaded into the code cache and stay there even if the resulted
46-
/// effects do not get commited back to the storage when the Session ends.
46+
/// effects do not get committed back to the storage when the Session ends.
4747
/// - As a result, if one wants to have multiple sessions at a time, one needs to make sure
4848
/// none of them will try to publish a module. In other words, if there is a module publishing
4949
/// Session it must be the only Session existing.

testing-infra/test-generation/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ pub fn run_generation(args: Args) {
363363
);
364364

365365
let (sender, receiver) = bounded(num_threads);
366-
let (stats_sender, stats_reciever) = unbounded();
366+
let (stats_sender, stats_receiver) = unbounded();
367367
let seed = seed(args.seed);
368368

369369
let mut threads = Vec::new();
@@ -384,7 +384,7 @@ pub fn run_generation(args: Args) {
384384

385385
let num_iters = args.num_iterations;
386386
threads.push(thread::spawn(move || {
387-
module_frame_generation(num_iters, seed, sender, stats_reciever)
387+
module_frame_generation(num_iters, seed, sender, stats_receiver)
388388
}));
389389

390390
for thread in threads {

0 commit comments

Comments
 (0)