From 5f753d791a22b82f57e54a9bc564c2604ca568b8 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 20 Jan 2022 22:34:30 +0000 Subject: [PATCH] Fix the entry link and the syntax --- agb/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/lib.rs b/agb/src/lib.rs index f5cb0f62..c26664c1 100644 --- a/agb/src/lib.rs +++ b/agb/src/lib.rs @@ -178,7 +178,7 @@ static mut GBASINGLE: single::Singleton = single::Singleton::new(unsafe { G /// The Gba struct is used to control access to the Game Boy Advance's hardware in a way which makes it the /// borrow checker's responsibility to ensure no clashes of global resources. /// -/// This is will be created for you via the #[agb::entry] attribute. +/// This is will be created for you via the [`#[agb::entry]`][entry] attribute. /// /// # Examples /// @@ -189,7 +189,7 @@ static mut GBASINGLE: single::Singleton = single::Singleton::new(unsafe { G /// use agb::Gba; /// /// #[agb::entry] -/// fn main(mut gba: Gba) -> ! +/// fn main(mut gba: Gba) -> ! { /// // Do whatever you need to do with gba /// /// loop {}