* Fix docs

* Update frame/support/src/dispatch.rs

Prettier link

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update primitives/runtime/src/traits.rs

Prettier link

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Dan Forbes
2020-05-06 14:22:35 -07:00
committed by GitHub
parent 7ee35f29dc
commit 848803aba2
12 changed files with 20 additions and 20 deletions
@@ -152,7 +152,7 @@ pub trait Proposer<B: BlockT> {
///
/// # Return
///
/// Returns a future that resolves to a [`Proposal`] or to [`Self::Error`].
/// Returns a future that resolves to a [`Proposal`] or to [`Error`].
fn propose(
&mut self,
inherent_data: InherentData,
+1 -1
View File
@@ -873,7 +873,7 @@ pub trait Pair: CryptoType + Sized + Clone + Send + Sync + 'static {
/// Interprets the string `s` in order to generate a key pair.
///
/// See [`from_string_with_seed`](Self::from_string_with_seed) for more extensive documentation.
/// See [`from_string_with_seed`](Pair::from_string_with_seed) for more extensive documentation.
#[cfg(feature = "std")]
fn from_string(s: &str, password_override: Option<&str>) -> Result<Self, SecretStringError> {
Self::from_string_with_seed(s, password_override).map(|x| x.0)
+1 -1
View File
@@ -639,7 +639,7 @@ fn reduce_all<A: IdentifierT>(assignments: &mut Vec<StakedAssignment<A>>) -> u32
num_changed
}
/// Reduce the given [`PhragmenResult`]. This removes redundant edges from without changing the
/// Reduce the given [`Vec<StakedAssignment<IdentifierT>>`]. This removes redundant edges from without changing the
/// overall backing of any of the elected candidates.
///
/// Returns the number of edges removed.
+1 -1
View File
@@ -1301,7 +1301,7 @@ impl Printable for Tuple {
}
}
/// Something that can convert a [`BlockId`] to a number or a hash.
/// Something that can convert a [`BlockId`](crate::generic::BlockId) to a number or a hash.
#[cfg(feature = "std")]
pub trait BlockIdTo<Block: self::Block> {
/// The error type that will be returned by the functions.
@@ -98,9 +98,9 @@ pub struct StorageChanges<Transaction, H: Hasher, N: BlockNumber> {
/// Offchain state changes to write to the offchain database.
pub offchain_storage_changes: OffchainOverlayedChanges,
/// A transaction for the backend that contains all changes from
/// [`main_storage_changes`](Self::main_storage_changes) and from
/// [`child_storage_changes`](Self::child_storage_changes).
/// [`offchain_storage_changes`](Self::offchain_storage_changes).
/// [`main_storage_changes`](StorageChanges::main_storage_changes) and from
/// [`child_storage_changes`](StorageChanges::child_storage_changes).
/// [`offchain_storage_changes`](StorageChanges::offchain_storage_changes).
pub transaction: Transaction,
/// The storage root after applying the transaction.
pub transaction_storage_root: H::Out,