correct end address of range

This commit is contained in:
Corwin 2022-07-30 22:49:26 +01:00
parent 0c25eb6bee
commit b39b6f43b3

View file

@ -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"
/// ); /// );
/// # } /// # }