Skip to content

Commit 8b48680

Browse files
author
Devdutt Shenoi
committed
doc: Minute
1 parent 2a9b189 commit 8b48680

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/utils/time.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,16 @@ impl TimeRange {
264264
}
265265
}
266266

267-
/// Describes a minute block
267+
/// Represents a minute value (0-59) and provides methods for converting it to a slot range.
268+
///
269+
/// # Examples
270+
///
271+
/// ```
272+
/// use crate::utils::time::Minute;
273+
///
274+
/// let minute = Minute::try_from(15).unwrap();
275+
/// assert_eq!(minute.to_slot(10), "10-19");
276+
/// ```
268277
#[derive(Debug, Clone, Copy)]
269278
pub struct Minute {
270279
block: u32,

0 commit comments

Comments
 (0)