Skip to content

Commit 83f7756

Browse files
author
Devdutt Shenoi
committed
fix: divisbility
1 parent 853a2fe commit 83f7756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ impl Minute {
307307
/// ### PANICS
308308
/// If the provided `data_granularity` value isn't cleanly divisble from 60
309309
pub fn to_slot(self, data_granularity: u32) -> String {
310-
assert!(data_granularity % 60 == 0);
310+
assert!(60 % data_granularity == 0);
311311
let block_n = self.block / data_granularity;
312312
let block_start = block_n * data_granularity;
313313
if data_granularity == 1 {

0 commit comments

Comments
 (0)