mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
correct end address of range
This commit is contained in:
parent
0c25eb6bee
commit
b39b6f43b3
|
@ -81,7 +81,7 @@ pub static EWRAM_ALLOC: &BlockAllocator = &GLOBAL_ALLOC;
|
||||||
/// let mut v = Vec::new_in(IWRAM_ALLOC);
|
/// let mut v = Vec::new_in(IWRAM_ALLOC);
|
||||||
/// v.push("hello, world");
|
/// v.push("hello, world");
|
||||||
/// assert!(
|
/// assert!(
|
||||||
/// (0x0300_0000..0x0200_8000).contains(&(v.as_ptr() as usize)),
|
/// (0x0300_0000..0x0300_8000).contains(&(v.as_ptr() as usize)),
|
||||||
/// "the address of the vector is inside iwram"
|
/// "the address of the vector is inside iwram"
|
||||||
/// );
|
/// );
|
||||||
/// # }
|
/// # }
|
||||||
|
|
Loading…
Reference in a new issue