Browse Source

Add extra docs to `McycleDelay::new`

Joey Harrison 2 năm trước cách đây
mục cha
commit
28715684db
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/delay.rs

+ 2 - 1
src/delay.rs

@@ -8,7 +8,8 @@ pub struct McycleDelay {
 }
 
 impl McycleDelay {
-    /// Constructs the delay provider
+    /// Constructs the delay provider.
+    /// `ticks_second` should be the clock speed of the core, in Hertz
     #[inline(always)]
     pub fn new(ticks_second: u32) -> Self {
         Self { ticks_second }