mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-22 23:26:33 +11:00
Merge pull request #163 from gwilymk/fix-librs-documentation
Fix the entry link and the syntax
This commit is contained in:
commit
a11057a7d1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
/// 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<Gba> = 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 {}
|
||||
|
|
Loading…
Add table
Reference in a new issue