diff --git a/substrate/primitives/consensus/slots/src/lib.rs b/substrate/primitives/consensus/slots/src/lib.rs index 433bde48dcf7..dfa46fcf2571 100644 --- a/substrate/primitives/consensus/slots/src/lib.rs +++ b/substrate/primitives/consensus/slots/src/lib.rs @@ -91,7 +91,9 @@ impl Slot { Slot(timestamp.as_millis() / slot_duration.as_millis()) } - /// Timestamp of the start of the slot. Returns None if would overflow for given SlotDuration. + /// Timestamp of the start of the slot. + /// + /// Returns `None` if would overflow for given `SlotDuration`. pub fn timestamp(&self, slot_duration: SlotDuration) -> Option { slot_duration.as_millis().checked_mul(self.0).map(Timestamp::new) }