Skip to content

Commit

Permalink
Fix bug in PushInfo::number_of_unions
Browse files Browse the repository at this point in the history
  • Loading branch information
dewert99 committed Apr 1, 2024
1 parent 88df634 commit 5894d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raw/semi_persistent1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl PushInfo {

/// Returns the number of unions from the state where `self` was created
pub fn number_of_unions(&self) -> usize {
self.union_count as usize
self.union_count as usize - 1
}
}

Expand Down

0 comments on commit 5894d5b

Please sign in to comment.