mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
fix doc examples
This commit is contained in:
parent
7f760d4404
commit
0c25eb6bee
1 changed files with 4 additions and 2 deletions
|
@ -49,9 +49,10 @@ static GLOBAL_ALLOC: BlockAllocator = unsafe {
|
||||||
/// allocated.
|
/// allocated.
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
|
/// #![feature(allocator_api)]
|
||||||
/// # #![no_std]
|
/// # #![no_std]
|
||||||
/// # #![no_main]
|
/// # #![no_main]
|
||||||
/// # use crate::EWRAM_ALLOC;
|
/// # use agb::EWRAM_ALLOC;
|
||||||
/// # extern crate alloc;
|
/// # extern crate alloc;
|
||||||
/// # use alloc::vec::Vec;
|
/// # use alloc::vec::Vec;
|
||||||
/// # fn foo(gba: &mut agb::Gba) {
|
/// # fn foo(gba: &mut agb::Gba) {
|
||||||
|
@ -70,9 +71,10 @@ pub static EWRAM_ALLOC: &BlockAllocator = &GLOBAL_ALLOC;
|
||||||
/// structures should be allocated.
|
/// structures should be allocated.
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
|
/// #![feature(allocator_api)]
|
||||||
/// # #![no_std]
|
/// # #![no_std]
|
||||||
/// # #![no_main]
|
/// # #![no_main]
|
||||||
/// # use crate::IWRAM_ALLOC;
|
/// # use agb::IWRAM_ALLOC;
|
||||||
/// # extern crate alloc;
|
/// # extern crate alloc;
|
||||||
/// # use alloc::vec::Vec;
|
/// # use alloc::vec::Vec;
|
||||||
/// # fn foo(gba: &mut agb::Gba) {
|
/// # fn foo(gba: &mut agb::Gba) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue