Skip to content

Commit

Permalink
Spelling (paritytech#10154)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork authored Nov 2, 2021
1 parent 0465b0b commit 9d8e5c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ let mut target_path =
```

- Unsafe code requires explicit proofs just as panickers do. When introducing unsafe code,
consider tradeoffs between efficiency on one hand and reliability, maintenance costs, and
security on the other. Here is a list of questions that may help evaluating the tradeoff while
consider trade-offs between efficiency on one hand and reliability, maintenance costs, and
security on the other. Here is a list of questions that may help evaluating the trade-off while
preparing or reviewing a PR:
- how much more performant or compact the resulting code will be using unsafe code,
- how likely is it that invariants could be violated,
Expand Down
2 changes: 1 addition & 1 deletion frame/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pub mod pallet {

/// Randomness under construction.
///
/// We make a tradeoff between storage accesses and list length.
/// We make a trade-off between storage accesses and list length.
/// We store the under-construction randomness in segments of up to
/// `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
///
Expand Down
2 changes: 1 addition & 1 deletion frame/multisig/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ pub mod pallet {
CallHash,
DispatchResult,
),
/// A multisig operation has been cancelled. \[cancelling, timepoint, multisig, call_hash\]
/// A multisig operation has been cancelled. \[canceling, timepoint, multisig, call_hash\]
MultisigCancelled(T::AccountId, Timepoint<T::BlockNumber>, T::AccountId, CallHash),
}

Expand Down
2 changes: 1 addition & 1 deletion primitives/state-machine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ mod tests {
}
overlay.start_transaction();

// Then only initlaization item and second (commited) item should persist.
// Then only initlaization item and second (committed) item should persist.
{
let ext = Ext::new(
&mut overlay,
Expand Down

0 comments on commit 9d8e5c4

Please sign in to comment.