aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-nrf/src/wdt.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-nrf/src/wdt.rs b/embassy-nrf/src/wdt.rs
index 5a261ce8f..e4cfa3344 100644
--- a/embassy-nrf/src/wdt.rs
+++ b/embassy-nrf/src/wdt.rs
@@ -184,8 +184,9 @@ impl WatchdogHandle {
184 184
185 /// Steal a watchdog handle by index. 185 /// Steal a watchdog handle by index.
186 /// 186 ///
187 /// Safety: watchdog must be initialized, index must be between 0 and N-1 where 187 /// # Safety
188 /// N is the handle count when initializing. 188 /// Watchdog must be initialized and `index` must be between `0` and `N-1`
189 /// where `N` is the handle count when initializing.
189 pub unsafe fn steal(index: u8) -> Self { 190 pub unsafe fn steal(index: u8) -> Self {
190 Self { index } 191 Self { index }
191 } 192 }