nrf: wdt: Fix formatting for Safety section

This commit is contained in:
Priit Laes 2024-08-08 11:54:50 +03:00
parent 2767b14a4e
commit 2e8d9dba14

View File

@ -184,8 +184,9 @@ impl WatchdogHandle {
/// Steal a watchdog handle by index.
///
/// Safety: watchdog must be initialized, index must be between 0 and N-1 where
/// N is the handle count when initializing.
/// # Safety
/// Watchdog must be initialized and `index` must be between `0` and `N-1`
/// where `N` is the handle count when initializing.
pub unsafe fn steal(index: u8) -> Self {
Self { index }
}