Merge pull request #163 from gwilymk/fix-librs-documentation

Fix the entry link and the syntax
This commit is contained in:
Gwilym Kuiper 2022-01-20 22:53:23 +00:00 committed by GitHub
commit a11057a7d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,7 +178,7 @@ static mut GBASINGLE: single::Singleton<Gba> = 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 /// 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. /// 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 /// # Examples
/// ///
@ -189,7 +189,7 @@ static mut GBASINGLE: single::Singleton<Gba> = single::Singleton::new(unsafe { G
/// use agb::Gba; /// use agb::Gba;
/// ///
/// #[agb::entry] /// #[agb::entry]
/// fn main(mut gba: Gba) -> ! /// fn main(mut gba: Gba) -> ! {
/// // Do whatever you need to do with gba /// // Do whatever you need to do with gba
/// ///
/// loop {} /// loop {}