Skip to content

Commit f434bf6

Browse files
authored
Update cortex-m/src/critical_section.rs
1 parent cb6eb03 commit f434bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-m/src/critical_section.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ unsafe impl Impl for SingleCoreCriticalSection {
1717
unsafe fn release(was_active: RawRestoreState) {
1818
// Only re-enable interrupts if they were enabled before the critical section.
1919
if was_active {
20-
// NOTE: Fence guarantees are provided by interrupt::disable(), which performs a
20+
// NOTE: Fence guarantees are provided by interrupt::enable(), which performs a
2121
// `compiler_fence(SeqCst)`.
2222
interrupt::enable()
2323
}

0 commit comments

Comments
 (0)