mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +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
|
/// Adds an interrupt handler as long as the returned value is alive. The
|
||||||
/// closure takes a [`CriticalSection`] which can be used for mutexes.
|
/// closure takes a [`CriticalSection`] which can be used for mutexes.
|
||||||
///
|
///
|
||||||
/// SAFETY:
|
/// # Safety
|
||||||
/// * You *must not* allocate in an interrupt.
|
/// * You *must not* allocate in an interrupt.
|
||||||
///
|
///
|
||||||
/// STATICNESS:
|
/// # Staticness
|
||||||
/// * The closure must be static because forgetting the interrupt handler will
|
/// * The closure must be static because forgetting the interrupt handler will
|
||||||
/// cause a use after free.
|
/// cause a use after free.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue