clarify that RollingBitField max is exclusive (#22947)

This commit is contained in:
Jeff Washington (jwash)
2022-02-07 13:40:31 -06:00
committed by GitHub
parent a160fc30f2
commit b2e475b5c4
2 changed files with 29 additions and 29 deletions

View File

@@ -86,7 +86,7 @@ impl Ancestors {
}
pub fn max_slot(&self) -> Slot {
self.ancestors.max() - 1
self.ancestors.max_exclusive().saturating_sub(1)
}
}
#[cfg(test)]