From 96a321504cd644820050f91022c30493e802bf58 Mon Sep 17 00:00:00 2001 From: Corwin Date: Thu, 6 Apr 2023 21:17:33 +0100 Subject: [PATCH] correct doc sections --- agb/src/interrupt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/interrupt.rs b/agb/src/interrupt.rs index 83c30357..26099f9d 100644 --- a/agb/src/interrupt.rs +++ b/agb/src/interrupt.rs @@ -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. ///