diff --git a/agb/src/input.rs b/agb/src/input.rs index 22b3e3dd..a2da38d8 100644 --- a/agb/src/input.rs +++ b/agb/src/input.rs @@ -66,7 +66,7 @@ bitflags! { const BUTTON_INPUT: *mut u16 = (0x04000130) as *mut u16; -// const BUTTON_INTURRUPT: *mut u16 = (0x04000132) as *mut u16; +// const BUTTON_INTERRUPT: *mut u16 = (0x04000132) as *mut u16; /// Helper to make it easy to get the current state of the GBA's buttons. /// diff --git a/agb/src/interrupt.rs b/agb/src/interrupt.rs index 6aba025c..f728f7e4 100644 --- a/agb/src/interrupt.rs +++ b/agb/src/interrupt.rs @@ -312,7 +312,7 @@ where pub struct VBlank {} impl VBlank { - /// Handles setting up everything reqired to be able to use the wait for + /// Handles setting up everything required to be able to use the wait for /// interrupt syscall. #[must_use] pub fn get() -> Self { diff --git a/agb/src/lib.rs b/agb/src/lib.rs index 1aeae5fc..b873c560 100644 --- a/agb/src/lib.rs +++ b/agb/src/lib.rs @@ -437,11 +437,11 @@ mod test { let address = iwram_ptr as usize; assert!( (0x0300_0000..0x0300_8000).contains(&address), - "iwram is located beween 0x0300_0000 and 0x0300_8000, but was actually found to be at {:#010X}", + "iwram is located between 0x0300_0000 and 0x0300_8000, but was actually found to be at {:#010X}", address ); let c = iwram_ptr.read_volatile(); - assert_eq!(c, 9, "exctected content to be 9"); + assert_eq!(c, 9, "expected content to be 9"); iwram_ptr.write_volatile(u32::MAX); let c = iwram_ptr.read_volatile(); assert_eq!(c, u32::MAX, "expected content to be {}", u32::MAX); @@ -460,7 +460,7 @@ mod test { address ); let c = iwram_ptr.read_volatile(); - assert_eq!(c, 9, "exctected content to be 9"); + assert_eq!(c, 9, "expected content to be 9"); iwram_ptr.write_volatile(u32::MAX); let c = iwram_ptr.read_volatile(); assert_eq!(c, u32::MAX, "expected content to be {}", u32::MAX);