Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Jan 28, 2025
1 parent 83fd675 commit 2e32fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebra-chain/src/parameters/network_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ impl NetworkUpgrade {
.expect("every height has a current network upgrade")
}

/// Returns the next expected network upgrade after this network upgrade
/// Returns the next expected network upgrade after this network upgrade.
pub fn next_upgrade(self) -> Option<Self> {
Self::iter().skip_while(|&nu| self != nu).nth(1)
}

/// Returns the previous network before after this network upgrade
/// Returns the previous network upgrade before this network upgrade.
pub fn previous_upgrade(self) -> Option<Self> {
Self::iter().rev().skip_while(|&nu| self != nu).nth(1)
}
Expand Down

0 comments on commit 2e32fd6

Please sign in to comment.