Fix epoch constructor misconception

This commit is contained in:
Emilia Hane
2023-01-16 13:59:39 +01:00
parent b5abfe620a
commit 0d13932663
3 changed files with 5 additions and 6 deletions

View File

@@ -76,8 +76,8 @@ impl Slot {
}
impl Epoch {
pub const fn new(slot: u64) -> Epoch {
Epoch(slot)
pub const fn new(epoch: u64) -> Epoch {
Epoch(epoch)
}
pub fn max_value() -> Epoch {