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.
1 parent cb6eb03 commit f434bf6Copy full SHA for f434bf6
cortex-m/src/critical_section.rs
@@ -17,7 +17,7 @@ unsafe impl Impl for SingleCoreCriticalSection {
17
unsafe fn release(was_active: RawRestoreState) {
18
// Only re-enable interrupts if they were enabled before the critical section.
19
if was_active {
20
- // NOTE: Fence guarantees are provided by interrupt::disable(), which performs a
+ // NOTE: Fence guarantees are provided by interrupt::enable(), which performs a
21
// `compiler_fence(SeqCst)`.
22
interrupt::enable()
23
}
0 commit comments