diff --git a/crates/env/src/engine/mod.rs b/crates/env/src/engine/mod.rs index a701e379030..4de06e62569 100644 --- a/crates/env/src/engine/mod.rs +++ b/crates/env/src/engine/mod.rs @@ -205,7 +205,7 @@ mod decode_instantiate_result_tests { } #[test] - fn succesful_dispatch_with_error_from_contract_constructor() { + fn successful_dispatch_with_error_from_contract_constructor() { let return_value = ConstructorResult::Ok(ContractResult::Err(ContractError( "Contract's constructor failed.".to_owned(), ))); diff --git a/integration-tests/public/erc20/lib.rs b/integration-tests/public/erc20/lib.rs index 2368cd294f2..be9aef5bc2c 100644 --- a/integration-tests/public/erc20/lib.rs +++ b/integration-tests/public/erc20/lib.rs @@ -243,7 +243,7 @@ mod erc20 { let Transfer { from, to, value } = decoded_event; assert_eq!(from, expected_from, "encountered invalid Transfer.from"); assert_eq!(to, expected_to, "encountered invalid Transfer.to"); - assert_eq!(value, expected_value, "encountered invalid Trasfer.value"); + assert_eq!(value, expected_value, "encountered invalid Transfer.value"); let mut expected_topics = Vec::new(); expected_topics.push( @@ -359,7 +359,7 @@ mod erc20 { Some(H160::from([0x01; 20])), 100.into(), ); - // Check the second transfer event relating to the actual trasfer. + // Check the second transfer event relating to the actual transfer. assert_transfer_event( &emitted_events[1], Some(H160::from([0x01; 20])), diff --git a/linting/extra/src/primitive_topic.rs b/linting/extra/src/primitive_topic.rs index 13f91f9a935..58651b47d82 100644 --- a/linting/extra/src/primitive_topic.rs +++ b/linting/extra/src/primitive_topic.rs @@ -179,7 +179,7 @@ impl<'tcx> LateLintPass<'tcx> for PrimitiveTopic { then { topics_impl.items.iter().for_each(|impl_item| { if_chain! { - // We need to extract field patterns from the event sturct matched in the + // We need to extract field patterns from the event struct matched in the // `topics` function to access their inferred types. // Here is the simplified example of the expanded code: // ```