We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853a2fe commit 83f7756Copy full SHA for 83f7756
src/utils/time.rs
@@ -307,7 +307,7 @@ impl Minute {
307
/// ### PANICS
308
/// If the provided `data_granularity` value isn't cleanly divisble from 60
309
pub fn to_slot(self, data_granularity: u32) -> String {
310
- assert!(data_granularity % 60 == 0);
+ assert!(60 % data_granularity == 0);
311
let block_n = self.block / data_granularity;
312
let block_start = block_n * data_granularity;
313
if data_granularity == 1 {
0 commit comments