Skip to content

Commit b618267

Browse files
gui1117athei
andauthored
Fix docs (#7710)
* fix docs * Update frame/merkle-mountain-range/src/lib.rs Co-authored-by: Alexander Theißen <[email protected]> Co-authored-by: Alexander Theißen <[email protected]>
1 parent 75104aa commit b618267

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,7 @@ impl<T: Config> Module<T> {
21662166
Self::bonded(stash).and_then(Self::ledger).map(|l| l.active).unwrap_or_default()
21672167
}
21682168

2169-
/// Internal impl of [`slashable_balance_of`] that returns [`VoteWeight`].
2169+
/// Internal impl of [`Self::slashable_balance_of`] that returns [`VoteWeight`].
21702170
pub fn slashable_balance_of_vote_weight(stash: &T::AccountId, issuance: BalanceOf<T>) -> VoteWeight {
21712171
T::CurrencyToVote::to_vote(Self::slashable_balance_of(stash), issuance)
21722172
}
@@ -2833,7 +2833,7 @@ impl<T: Config> Module<T> {
28332833
/// Execute election and return the new results. The edge weights are processed into support
28342834
/// values.
28352835
///
2836-
/// This is basically a wrapper around [`do_phragmen`] which translates
2836+
/// This is basically a wrapper around [`Self::do_phragmen`] which translates
28372837
/// `PrimitiveElectionResult` into `ElectionResult`.
28382838
///
28392839
/// No storage item is updated.

src/slashing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
//! has multiple misbehaviors. However, accounting for such cases is necessary
4848
//! to deter a class of "rage-quit" attacks.
4949
//!
50-
//! Based on research at https://research.web3.foundation/en/latest/polkadot/slashing/npos/
50+
//! Based on research at <https://research.web3.foundation/en/latest/polkadot/slashing/npos/>
5151
5252
use super::{
5353
EraIndex, Config, Module, Store, BalanceOf, Exposure, Perbill, SessionInterface,

0 commit comments

Comments
 (0)