Skip to content

fix: typos in documentation files #2392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/env/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/public/erc20/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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])),
Expand Down
2 changes: 1 addition & 1 deletion linting/extra/src/primitive_topic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
// ```
Expand Down