Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
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 substrate/client/db/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use DatabaseSettings;
/// Number of columns in the db. Must be the same for both full && light dbs.
/// Otherwise RocksDb will fail to open database && check its type.
pub const NUM_COLUMNS: u32 = 7;
/// Meta column. Thes set of keys in the column is shared by full && light storages.
/// Meta column. The set of keys in the column is shared by full && light storages.
pub const COLUMN_META: Option<u32> = Some(0);

/// Keys of entries in COLUMN_META.
Expand Down
2 changes: 1 addition & 1 deletion substrate/network/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub trait SyncProvider<B: BlockT>: Send + Sync {
pub trait TransactionPool<B: BlockT>: Send + Sync {
/// Get transactions from the pool that are ready to be propagated.
fn transactions(&self) -> Vec<(B::Hash, B::Extrinsic)>;
/// Import a transction into the pool.
/// Import a transaction into the pool.
fn import(&self, transaction: &B::Extrinsic) -> Option<B::Hash>;
/// Notify the pool about transactions broadcast.
fn on_broadcasted(&self, propagations: HashMap<B::Hash, Vec<String>>);
Expand Down
4 changes: 2 additions & 2 deletions substrate/primitives/src/hexdisplay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ impl<'a> ::core::fmt::Display for HexDisplay<'a> {
}
}

/// Simple trait to transferm various types to `&[u8]`
/// Simple trait to transform various types to `&[u8]`
pub trait AsBytesRef {
/// Transferm `self` into `&[u8]`.
/// Transform `self` into `&[u8]`.
fn as_bytes_ref(&self) -> &[u8];
}

Expand Down
4 changes: 2 additions & 2 deletions substrate/primitives/src/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub struct Entry {
#[derive(Clone, PartialEq, Eq, Encode, Decode)]
#[cfg_attr(feature = "std", derive(Debug))]
pub struct EnvironmentDefinition {
/// Vector of all entries in the environment defintion.
/// Vector of all entries in the environment definition.
pub entries: Vec<Entry>,
}

Expand All @@ -176,7 +176,7 @@ pub const ERR_MODULE: u32 = -1i32 as u32;
/// For FFI purposes.
pub const ERR_OUT_OF_BOUNDS: u32 = -2i32 as u32;

/// Execution error occured (typically trap).
/// Execution error occurred (typically trap).
///
/// For FFI purposes.
pub const ERR_EXECUTION: u32 = -3i32 as u32;
Expand Down
2 changes: 1 addition & 1 deletion substrate/runtime/contract/src/double_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn full_key<M: StorageDoubleMap + ?Sized>(k1: M::Key1, k2: M::Key2) -> Vec<u8> {
/// The first part is a XX hash of a concatenation of the `PREFIX` and `Key1`. And the second part
/// is a blake2 hash of a `Key2`.
///
/// Blake2 is used for `Key2` is because it will be used as a for a key for contract's storage and
/// Blake2 is used for `Key2` is because it will be used as a key for contract's storage and
/// thus will be susceptible for a untrusted input.
pub trait StorageDoubleMap {
type Key1: Codec;
Expand Down
1 change: 0 additions & 1 deletion substrate/state-db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ pub trait HashDb {
fn get(&self, key: &Self::Hash) -> Result<Option<DBValue>, Self::Error>;
}

/// Error type.
/// Error type.
pub enum Error<E: fmt::Debug> {
/// Database backend error.
Expand Down