We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Safety
1 parent 2767b14 commit 2e8d9dbCopy full SHA for 2e8d9db
embassy-nrf/src/wdt.rs
@@ -184,8 +184,9 @@ impl WatchdogHandle {
184
185
/// Steal a watchdog handle by index.
186
///
187
- /// Safety: watchdog must be initialized, index must be between 0 and N-1 where
188
- /// N is the handle count when initializing.
+ /// # Safety
+ /// Watchdog must be initialized and `index` must be between `0` and `N-1`
189
+ /// where `N` is the handle count when initializing.
190
pub unsafe fn steal(index: u8) -> Self {
191
Self { index }
192
}
0 commit comments