Skip to content

Commit 061aed2

Browse files
committed
Fix typos
1 parent dcf53be commit 061aed2

80 files changed

Lines changed: 188 additions & 190 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

crates/bridge-pot-currency-swap/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Bridge pot currency swap implementation.
22
3-
// Either generate code at stadard mode, or `no_std`, based on the `std` feature presence.
3+
// Either generate code at standard mode, or `no_std`, based on the `std` feature presence.
44
#![cfg_attr(not(feature = "std"), no_std)]
55

66
use frame_support::{

crates/crypto-utils-evm/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl KeyData {
8585
})
8686
}
8787

88-
/// Construct the key info from the BIP39 mnemonic using BIP44 convenions.
88+
/// Construct the key info from the BIP39 mnemonic using BIP44 convensions.
8989
pub fn from_mnemonic_bip44(
9090
mnemonic: &bip39::Mnemonic,
9191
password: &str,
@@ -99,7 +99,7 @@ impl KeyData {
9999
.map_err(FromMnemonicBip44Error::FromMnemonicBip39)
100100
}
101101

102-
/// Construct the key info from the BIP39 mnemonic phrase (in English) using BIP44 convenions.
102+
/// Construct the key info from the BIP39 mnemonic phrase (in English) using BIP44 convensions.
103103
/// If you need other language - use [`Self::from_mnemonic_bip44`].
104104
pub fn from_phrase_bip44(
105105
phrase: &str,

crates/devutil-auth-ticket/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use robonode_crypto::ed25519_dalek::Signer;
66

77
/// The input required to generate an auth ticket.
88
pub struct Input {
9-
/// The robonode secret key to use for authticket reponse signing.
9+
/// The robonode secret key to use for authticket response signing.
1010
pub robonode_secret_key: Vec<u8>,
1111
/// The auth ticket to sign.
1212
pub auth_ticket: AuthTicket,

crates/eip712-common/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ pub fn make_payload_hash<'a>(
6868
) -> [u8; 32] {
6969
let datahashes = datahashes.into_iter();
7070
let (datahashes_size, _) = datahashes.size_hint();
71-
// Datahashes number is enough limited at EIP-712 message for this oveflow
72-
// to be practicly impossible.
71+
// Datahashes number is enough limited at EIP-712 message for this overflow
72+
// to be practically impossible.
7373
let mut buf = sp_std::prelude::Vec::with_capacity(
7474
32_usize
7575
.checked_add(datahashes_size.checked_mul(32).unwrap())

crates/facetec-api-client/src/enrollment3d.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ pub struct Request<'a> {
3232
}
3333

3434
/// The response from `/enrollment-3d`.
35-
/// The schema for this particular call if fucked beyound belief; without a proper API docs from
36-
/// the FaceTec side, implemeting this properly will be a waste of time, and error prone.
37-
/// Plus, even the spec won't help - they need to fix thier approach to the API design.
35+
/// The schema for this particular call if fucked beyond belief; without a proper API docs from
36+
/// the FaceTec side, implementing this properly will be a waste of time, and error prone.
37+
/// Plus, even the spec won't help - they need to fix their approach to the API design.
3838
#[derive(Debug, Deserialize, PartialEq)]
3939
#[serde(rename_all = "camelCase")]
4040
pub struct Response {

crates/facetec-api-client/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub struct ServerError {
5252
/// The robonode client.
5353
#[derive(Debug)]
5454
pub struct Client<RBEI> {
55-
/// Underyling HTTP client used to execute network calls.
55+
/// Underlying HTTP client used to execute network calls.
5656
pub reqwest: reqwest::Client,
5757
/// The base URL to use for the routes.
5858
pub base_url: String,

crates/humanode-peer/src/build_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Build envrionment information.
1+
//! Build environment information.
22
33
/// The git sha of the code during the build.
44
pub const GIT_SHA: &str = env!("VERGEN_GIT_SHA");

crates/humanode-peer/src/chain_spec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,10 @@ fn testnet_genesis(
391391

392392
/// The standard properties we use.
393393
fn properties() -> sc_chain_spec::Properties {
394-
let properites = serde_json::json!({
394+
let properties = serde_json::json!({
395395
"tokenDecimals": 18,
396396
});
397-
serde_json::from_value(properites).unwrap() // embedded value, should never fail
397+
serde_json::from_value(properties).unwrap() // embedded value, should never fail
398398
}
399399

400400
#[cfg(test)]

crates/humanode-peer/src/cli/root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl SubstrateCli for Root {
6161
impl Root {
6262
/// Create a [`Runner`] for the command provided in argument.
6363
/// This will create a [`crate::configuration::Configuration`] from the command line arguments
64-
/// and the rest of the environemnt.
64+
/// and the rest of the environment.
6565
pub fn create_humanode_runner<T: CliConfigurationExt>(
6666
&self,
6767
command: &T,

crates/humanode-peer/src/cli/runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use sp_core::crypto::Ss58AddressFormat;
1111
use super::{utils::application_error, CliConfigurationExt, Root};
1212
use crate::configuration::Configuration;
1313

14-
/// Run a future until it completes or a signal is recevied.
14+
/// Run a future until it completes or a signal is received.
1515
async fn with_signal<F, E>(future: F) -> std::result::Result<(), E>
1616
where
1717
F: Future<Output = std::result::Result<(), E>>,
@@ -101,7 +101,7 @@ impl<C: SubstrateCli> Runner<C> {
101101
future.await
102102
}
103103

104-
/// Execute syncronously.
104+
/// Execute synchronously.
105105
pub fn sync_run<E>(
106106
self,
107107
runner: impl FnOnce(Configuration) -> std::result::Result<(), E>,

0 commit comments

Comments
 (0)