Skip to content

Commit 2e8d9db

Browse files
committed
nrf: wdt: Fix formatting for Safety section
1 parent 2767b14 commit 2e8d9db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

embassy-nrf/src/wdt.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ impl WatchdogHandle {
184184

185185
/// Steal a watchdog handle by index.
186186
///
187-
/// Safety: watchdog must be initialized, index must be between 0 and N-1 where
188-
/// N is the handle count when initializing.
187+
/// # Safety
188+
/// Watchdog must be initialized and `index` must be between `0` and `N-1`
189+
/// where `N` is the handle count when initializing.
189190
pub unsafe fn steal(index: u8) -> Self {
190191
Self { index }
191192
}

0 commit comments

Comments
 (0)