Skip to content

Commit b121924

Browse files
committed
docs correction
1 parent 2a16f58 commit b121924

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cortex-m/src/peripheral/nvic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ unsafe impl Send for NVIC {}
1212
impl NVIC {
1313
/// Create a new instance of the NVIC driver.
1414
///
15-
/// This API consumes the peripheral singleton instance.
15+
/// This API consumes the NVIC field of the [super::Peripherals] instance.
1616
#[inline]
1717
pub const fn new(_resource: OwnedRegisterBlock<{ BASE_ADDRESS }>) -> Self {
18+
// Safety: NVIC field of singleton is consumed here to verify ownership transfer.
1819
unsafe { Self::steal() }
1920
}
2021

0 commit comments

Comments
 (0)