From d1ba1146d4f6288dcf185188a3a14f37972aae10 Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 26 Nov 2020 12:32:34 +1000 Subject: [PATCH] Add intra-doc links --- zebra-chain/src/parameters/network_upgrade.rs | 4 ++-- zebra-state/src/service/check/difficulty.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/zebra-chain/src/parameters/network_upgrade.rs b/zebra-chain/src/parameters/network_upgrade.rs index 989f9b11..7cc9bc37 100644 --- a/zebra-chain/src/parameters/network_upgrade.rs +++ b/zebra-chain/src/parameters/network_upgrade.rs @@ -203,7 +203,7 @@ impl NetworkUpgrade { /// Returns the target block spacing for `network` and `height`. /// - /// See `target_spacing` for details. + /// See [`target_spacing()`] for details. pub fn target_spacing_for_height(network: Network, height: block::Height) -> Duration { NetworkUpgrade::current(network, height).target_spacing() } @@ -269,7 +269,7 @@ impl NetworkUpgrade { /// Returns the averaging window timespan for `network` and `height`. /// - /// See `averaging_window_timespan` for details. + /// See [`averaging_window_timespan()`] for details. pub fn averaging_window_timespan_for_height( network: Network, height: block::Height, diff --git a/zebra-state/src/service/check/difficulty.rs b/zebra-state/src/service/check/difficulty.rs index cc3fb565..42515647 100644 --- a/zebra-state/src/service/check/difficulty.rs +++ b/zebra-state/src/service/check/difficulty.rs @@ -99,7 +99,7 @@ impl AdjustedDifficulty { /// Designed for use when validating block headers, where the full block has not /// been downloaded yet. /// - /// See `new_from_block` for detailed information about the `context`. + /// See [`new_from_block()`] for detailed information about the `context`. /// /// # Panics /// @@ -165,7 +165,7 @@ impl AdjustedDifficulty { /// `candidate_height`, `network`, and the relevant `difficulty_threshold`s and /// `time`s. /// - /// See `expected_difficulty_threshold` for details. + /// See [`expected_difficulty_threshold()`] for details. /// /// Implements `ThresholdBits` from the Zcash specification. (Which excludes the /// Testnet minimum difficulty adjustment.) @@ -264,7 +264,7 @@ impl AdjustedDifficulty { /// /// Implements `ActualTimespan` from the Zcash specification. /// - /// See `median_timespan_bounded` for details. + /// See [`median_timespan_bounded()`] for details. fn median_timespan(&self) -> Duration { let newer_times: [DateTime; POW_MEDIAN_BLOCK_SPAN] = self.relevant_times [0..POW_MEDIAN_BLOCK_SPAN]