aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriit Laes <[email protected]>2024-08-08 11:54:50 +0300
committerPriit Laes <[email protected]>2024-08-08 23:01:03 +0300
commit2e8d9dba1443d1bb9a621027df06b0f9ba0097bc (patch)
tree4a1014c9f2393e83f9008bc569b8374d06dd699d
parent2767b14a4e8ef501a6f02afa11758c0783c07cd4 (diff)
nrf: wdt: Fix formatting for `Safety` section
-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 }