Typo in comments.

This commit is contained in:
Jonathan Pallant (42 Technology) 2021-09-21 12:43:16 +01:00
parent 25d87b838b
commit f0fc4ed3ad
2 changed files with 6 additions and 5 deletions

View file

@ -104,8 +104,9 @@ fn main() -> ! {
USB_BUS = Some(usb_bus); USB_BUS = Some(usb_bus);
} }
// Grab a reference to the USB Bus allocator. We must promise not to take // Grab a reference to the USB Bus allocator. We are promising to the
// mutable access to this global variable whilst the reference exists! // compiler not to take mutable access to this global variable whilst this
// reference exists!
let bus_ref = unsafe { USB_BUS.as_ref().unwrap() }; let bus_ref = unsafe { USB_BUS.as_ref().unwrap() };
// Set up the USB Communications Class Device driver // Set up the USB Communications Class Device driver

View file

@ -102,9 +102,9 @@ fn main() -> ! {
USB_BUS = Some(usb_bus); USB_BUS = Some(usb_bus);
} }
// Grab a reference to the USB Bus allocator. We promising to the compiler // Grab a reference to the USB Bus allocator. We are promising to the
// not to take mutable access to this global variable whilst this reference // compiler not to take mutable access to this global variable whilst this
// exists! // reference exists!
let bus_ref = unsafe { USB_BUS.as_ref().unwrap() }; let bus_ref = unsafe { USB_BUS.as_ref().unwrap() };
// Set up the USB HID Class Device driver, providing Mouse Reports // Set up the USB HID Class Device driver, providing Mouse Reports