mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
correct doc sections
This commit is contained in:
parent
dffda47985
commit
96a321504c
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue