correct doc sections

This commit is contained in:
Corwin 2023-04-06 21:17:33 +01:00
parent dffda47985
commit 96a321504c
No known key found for this signature in database

View file

@ -226,10 +226,10 @@ fn interrupt_to_root(interrupt: Interrupt) -> &'static InterruptRoot {
/// Adds an interrupt handler as long as the returned value is alive. The
/// closure takes a [`CriticalSection`] which can be used for mutexes.
///
/// SAFETY:
/// # Safety
/// * You *must not* allocate in an interrupt.
///
/// STATICNESS:
/// # Staticness
/// * The closure must be static because forgetting the interrupt handler will
/// cause a use after free.
///