mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 06:41:34 +00:00
Check documentation intra-link (#1432)
* Fix broken links in rustdoc This fixes all of the rustdoc warnings on nightly. * Check documentation intra-link * Fix config * Fix bad indent * Make nightly explicit * More links fixes * Fix link broken after master merge Co-authored-by: Demi Obenour <48690212+DemiMarie-parity@users.noreply.github.com>
This commit is contained in:
@ -32,12 +32,11 @@
|
||||
//! an [`AppliedPending`] result which must be consumed by calling [`take_applied_pending`]
|
||||
//! regularly and / or after performing lookup operations like [`entry`] and [`closest`].
|
||||
//!
|
||||
//! [`entry`]: kbucket::KBucketsTable::entry
|
||||
//! [`closest`]: kbucket::KBucketsTable::closest
|
||||
//! [`AppliedPending`]: kbucket::AppliedPending
|
||||
//! [`KBucketsTable`]: kbucket::KBucketsTable
|
||||
//! [`take_applied_pending`]: kbucket::KBucketsTable::take_applied_pending
|
||||
//! [`PendingEntry`]: kbucket::PendingEntry
|
||||
//! [`entry`]: KBucketsTable::entry
|
||||
//! [`closest`]: KBucketsTable::closest
|
||||
//! [`AppliedPending`]: bucket::AppliedPending
|
||||
//! [`take_applied_pending`]: KBucketsTable::take_applied_pending
|
||||
//! [`PendingEntry`]: entry::PendingEntry
|
||||
|
||||
// [Implementation Notes]
|
||||
//
|
||||
@ -469,7 +468,7 @@ where
|
||||
/// Together with a known key `a` (e.g. the local key), a random distance `d` for
|
||||
/// this bucket w.r.t `k` gives rise to the corresponding (random) key `b` s.t.
|
||||
/// the XOR distance between `a` and `b` is `d`. In other words, it gives
|
||||
/// rise to a random key falling into this bucket. See [`Key::from_distance`].
|
||||
/// rise to a random key falling into this bucket. See [`key::Key::for_distance`].
|
||||
pub fn rand_distance(&self, rng: &mut impl rand::Rng) -> Distance {
|
||||
self.index.rand_distance(rng)
|
||||
}
|
||||
|
Reference in New Issue
Block a user