Skip to content
Snippets Groups Projects
Unverified Commit e056586b authored by chloefeal's avatar chloefeal Committed by GitHub
Browse files

chore: fix typos (#6999)

✄
-----------------------------------------------------------------------------

Thank you for your Pull Request! :pray:

 Please make sure it follows the
contribution guidelines outlined in [this

document](https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md)
and fill out the
sections below. Once you're ready to submit your PR for review, please
delete this section and leave only the text under
the "Description" heading.

# Description

Hello, I fix some typos in logs and comments. Thank you very much.


## Integration

*In depth notes about how this PR should be integrated by downstream
projects. This part is mandatory, and should be
reviewed by reviewers, if the PR does NOT have the `R0-Silent` label. In
case of a `R0-Silent`, it can be ignored.*

## Review Notes

*In depth notes about the **implementation** details of your PR. This
should be the main guide for reviewers to
understand your approach and effectively review it. If too long, use

[`<details>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details)*.

*Imagine that someone who is depending on the old code wants to
integrate your new code and the only information that
they get is this section. It helps to include example usage and default
value here, with a `diff` code-block to show
possibly integration.*

*Include your leftover TODOs, if any, here.*

# Checklist

* [ ] My PR includes a detailed description as outlined in the
"Description" and its two subsections above.
* [ ] My PR follows the [labeling requirements](

https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md#Process
) of this project (at minimum one label for `T` required)
* External contributors: ask maintainers to put the right label on your
PR.
* [ ] I have made corresponding changes to the documentation (if
applicable)
* [ ] I have added tests that prove my fix is effective or that my
feature works (if applicable)

You can remove the "Checklist" section once all have been checked. Thank
you for your contribution!

✄
-----------------------------------------------------------------------------

Signed-off-by: default avatarchloefeal <188809157+chloefeal@users.noreply.github.com>
parent 77ad8abb
Branches
No related merge requests found
Pipeline #512210 waiting for manual action with stages
in 42 minutes and 4 seconds
...@@ -47,7 +47,7 @@ pub enum Error<Hash: Debug + MaybeDisplay, HeaderNumber: Debug + MaybeDisplay> { ...@@ -47,7 +47,7 @@ pub enum Error<Hash: Debug + MaybeDisplay, HeaderNumber: Debug + MaybeDisplay> {
#[error("Failed to guess initial {0} GRANDPA authorities set id: checked all possible ids in range [0; {1}]")] #[error("Failed to guess initial {0} GRANDPA authorities set id: checked all possible ids in range [0; {1}]")]
GuessInitialAuthorities(&'static str, HeaderNumber), GuessInitialAuthorities(&'static str, HeaderNumber),
/// Failed to retrieve GRANDPA authorities at the given header from the source chain. /// Failed to retrieve GRANDPA authorities at the given header from the source chain.
#[error("Failed to retrive {0} GRANDPA authorities set at header {1}: {2:?}")] #[error("Failed to retrieve {0} GRANDPA authorities set at header {1}: {2:?}")]
RetrieveAuthorities(&'static str, Hash, client::Error), RetrieveAuthorities(&'static str, Hash, client::Error),
/// Failed to decode GRANDPA authorities at the given header of the source chain. /// Failed to decode GRANDPA authorities at the given header of the source chain.
#[error("Failed to decode {0} GRANDPA authorities set at header {1}: {2:?}")] #[error("Failed to decode {0} GRANDPA authorities set at header {1}: {2:?}")]
......
...@@ -1041,7 +1041,7 @@ pub(crate) mod tests { ...@@ -1041,7 +1041,7 @@ pub(crate) mod tests {
#[test] #[test]
fn message_lane_loop_is_able_to_recover_from_unsuccessful_transaction() { fn message_lane_loop_is_able_to_recover_from_unsuccessful_transaction() {
// with this configuration, both source and target clients will mine their transactions, but // with this configuration, both source and target clients will mine their transactions, but
// their corresponding nonce won't be udpated => reconnect will happen // their corresponding nonce won't be updated => reconnect will happen
let (exit_sender, exit_receiver) = unbounded(); let (exit_sender, exit_receiver) = unbounded();
let result = run_loop_test( let result = run_loop_test(
Arc::new(Mutex::new(TestClientData { Arc::new(Mutex::new(TestClientData {
......
...@@ -206,7 +206,7 @@ mod tests { ...@@ -206,7 +206,7 @@ mod tests {
for token in token_locations { for token in token_locations {
assert!( assert!(
TokenIdOf::convert_location(&token).is_some(), TokenIdOf::convert_location(&token).is_some(),
"Valid token = {token:?} yeilds no TokenId." "Valid token = {token:?} yields no TokenId."
); );
} }
...@@ -220,7 +220,7 @@ mod tests { ...@@ -220,7 +220,7 @@ mod tests {
for token in non_token_locations { for token in non_token_locations {
assert!( assert!(
TokenIdOf::convert_location(&token).is_none(), TokenIdOf::convert_location(&token).is_none(),
"Invalid token = {token:?} yeilds a TokenId." "Invalid token = {token:?} yields a TokenId."
); );
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment