From cab12b60c1cce83be0f42d8447791977d66ba3d6 Mon Sep 17 00:00:00 2001 From: Black3HDF <29630164+Satoshi-Kusumoto@users.noreply.github.com> Date: Sun, 16 Jun 2019 15:50:17 +0800 Subject: [PATCH] fix typos (#291) --- polkadot/erasure-coding/src/lib.rs | 4 ++-- polkadot/primitives/src/lib.rs | 2 +- polkadot/runtime/src/claims.rs | 2 +- polkadot/statement-table/src/generic.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/polkadot/erasure-coding/src/lib.rs b/polkadot/erasure-coding/src/lib.rs index 0fac9744c6..2189a65c41 100644 --- a/polkadot/erasure-coding/src/lib.rs +++ b/polkadot/erasure-coding/src/lib.rs @@ -21,7 +21,7 @@ //! and constructing a merkle root of the data. //! //! Each of n validators stores their piece of data. We assume n=3f+k, k < 3. -//! f is the maximum number of faulty vaildators in the system. +//! f is the maximum number of faulty validators in the system. //! The data is coded so any f+1 chunks can be used to reconstruct the full data. use parity_codec::{Encode, Decode}; @@ -264,7 +264,7 @@ pub fn branches<'a>(chunks: Vec<&'a [u8]>) -> Branches<'a> { } } -/// Verify a markle branch, yielding the chunk hash meant to be present at that +/// Verify a merkle branch, yielding the chunk hash meant to be present at that /// index. pub fn branch_hash(root: &H256, branch_nodes: &[Vec], index: usize) -> Result { let mut trie_storage: MemoryDB = MemoryDB::default(); diff --git a/polkadot/primitives/src/lib.rs b/polkadot/primitives/src/lib.rs index 083dbb32e9..f1f90ed2e3 100644 --- a/polkadot/primitives/src/lib.rs +++ b/polkadot/primitives/src/lib.rs @@ -53,7 +53,7 @@ pub type AccountId = ::Signer; /// never know... pub type AccountIndex = u32; -/// Indentifier for a chain. 32-bit should be plenty. +/// Identifier for a chain. 32-bit should be plenty. pub type ChainId = u32; /// A hash of some data used by the relay chain. diff --git a/polkadot/runtime/src/claims.rs b/polkadot/runtime/src/claims.rs index 7b6837da28..16b1f67877 100644 --- a/polkadot/runtime/src/claims.rs +++ b/polkadot/runtime/src/claims.rs @@ -191,7 +191,7 @@ mod tests { use substrate_primitives::{H256, Blake2Hasher}; use parity_codec::{Decode, Encode}; // The testing primitives are very useful for avoiding having to work with signatures - // or public keys. `u64` is used as the `AccountId` and no `Signature`s are requried. + // or public keys. `u64` is used as the `AccountId` and no `Signature`s are required. use sr_primitives::{ BuildStorage, traits::{BlakeTwo256, IdentityLookup}, testing::{Digest, DigestItem, Header} }; diff --git a/polkadot/statement-table/src/generic.rs b/polkadot/statement-table/src/generic.rs index aae2f62216..ed7afdae28 100644 --- a/polkadot/statement-table/src/generic.rs +++ b/polkadot/statement-table/src/generic.rs @@ -93,7 +93,7 @@ pub struct SignedStatement { /// three possible combinations (unordered) #[derive(PartialEq, Eq, Debug, Clone)] pub enum ValidityDoubleVote { - /// Implicit vote by issuing and explicity voting validity. + /// Implicit vote by issuing and explicitly voting validity. IssuedAndValidity((C, S), (D, S)), /// Implicit vote by issuing and explicitly voting invalidity IssuedAndInvalidity((C, S), (D, S)),