mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 00:02:28 +00:00
nrf: wdt: Fix formatting for Safety
section
This commit is contained in:
parent
2767b14a4e
commit
2e8d9dba14
@ -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 }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user