fix doc examples

This commit is contained in:
Corwin 2022-07-30 19:47:34 +01:00
parent 7f760d4404
commit 0c25eb6bee

View file

@ -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) {