Fix typos and markdown (#2388)

* Fix typos

* Align properly

* Update core/consensus/slots/src/lib.rs

Co-Authored-By: cmichi <mich@elmueller.net>

* Update core/network/src/test/mod.rs

Co-Authored-By: cmichi <mich@elmueller.net>

* Update core/finality-grandpa/src/communication/mod.rs

Co-Authored-By: cmichi <mich@elmueller.net>

* Update core/consensus/common/src/import_queue.rs

Co-Authored-By: cmichi <mich@elmueller.net>
This commit is contained in:
Michael Müller
2019-04-26 14:09:13 +02:00
committed by Bastian Köcher
parent f0202aa425
commit a0e0d9b03d
31 changed files with 47 additions and 47 deletions
+3 -3
View File
@@ -255,7 +255,7 @@ pub fn refund_unused_gas<T: Trait>(
}
}
/// A little handy utility for converting a value in balance units into approximitate value in gas units
/// A little handy utility for converting a value in balance units into approximate value in gas units
/// at the given gas price.
pub fn approx_gas_for_balance<T: Trait>(gas_price: BalanceOf<T>, balance: BalanceOf<T>) -> T::Gas {
let amount_in_gas: BalanceOf<T> = balance / gas_price;
@@ -316,7 +316,7 @@ mod tests {
struct DoubleTokenMetadata {
multiplier: u64,
}
/// A simple token that charges for the given amount multipled to
/// A simple token that charges for the given amount multiplied to
/// a multiplier taken from a given metadata.
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
struct DoubleToken(u64);
@@ -324,7 +324,7 @@ mod tests {
impl Token<Test> for DoubleToken {
type Metadata = DoubleTokenMetadata;
fn calculate_amount(&self, metadata: &DoubleTokenMetadata) -> u64 {
// Probably you want to use saturating mul in producation code.
// Probably you want to use saturating mul in production code.
self.0 * metadata.multiplier
}
}