Skip to content

Commit d48e32b

Browse files
committed
fix(cardano-blockchain-types): add Fork decrement function
Signed-off-by: bkioshn <[email protected]>
1 parent bfc2e15 commit d48e32b

File tree

1 file changed

+6
-1
lines changed
  • rust/cardano-blockchain-types/src

1 file changed

+6
-1
lines changed

rust/cardano-blockchain-types/src/fork.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@ impl Fork {
2727
Self(value)
2828
}
2929

30-
/// increment the fork count.
30+
/// Increment the fork count.
3131
pub fn incr(&mut self) {
3232
self.0 += 1;
3333
}
34+
35+
/// Decrement the fork count.
36+
pub fn decr(&mut self) {
37+
self.0 -= 1;
38+
}
3439
}
3540

3641
impl From<u64> for Fork {

0 commit comments

Comments
 (0)