From 0584312ef0324d2ac67dbb9517176fabf628eec9 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Mon, 8 May 2023 23:25:01 +0200 Subject: Fix some typos --- embassy-usb/src/class/cdc_ncm/mod.rs | 4 ++-- embassy-usb/src/class/hid.rs | 2 +- embassy-usb/src/msos.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'embassy-usb') diff --git a/embassy-usb/src/class/cdc_ncm/mod.rs b/embassy-usb/src/class/cdc_ncm/mod.rs index 262499ccb..d5556dd0b 100644 --- a/embassy-usb/src/class/cdc_ncm/mod.rs +++ b/embassy-usb/src/class/cdc_ncm/mod.rs @@ -370,7 +370,7 @@ pub struct Sender<'d, D: Driver<'d>> { impl<'d, D: Driver<'d>> Sender<'d, D> { /// Write a packet. /// - /// This waits until the packet is succesfully stored in the CDC-NCM endpoint buffers. + /// This waits until the packet is successfully stored in the CDC-NCM endpoint buffers. pub async fn write_packet(&mut self, data: &[u8]) -> Result<(), EndpointError> { let seq = self.seq; self.seq = self.seq.wrapping_add(1); @@ -436,7 +436,7 @@ pub struct Receiver<'d, D: Driver<'d>> { impl<'d, D: Driver<'d>> Receiver<'d, D> { /// Write a network packet. /// - /// This waits until a packet is succesfully received from the endpoint buffers. + /// This waits until a packet is successfully received from the endpoint buffers. pub async fn read_packet(&mut self, buf: &mut [u8]) -> Result { // Retry loop loop { diff --git a/embassy-usb/src/class/hid.rs b/embassy-usb/src/class/hid.rs index 03e4c1dbb..889d66ec5 100644 --- a/embassy-usb/src/class/hid.rs +++ b/embassy-usb/src/class/hid.rs @@ -165,7 +165,7 @@ impl<'d, D: Driver<'d>, const READ_N: usize, const WRITE_N: usize> HidReaderWrit } } - /// Splits into seperate readers/writers for input and output reports. + /// Splits into separate readers/writers for input and output reports. pub fn split(self) -> (HidReader<'d, D, READ_N>, HidWriter<'d, D, WRITE_N>) { (self.reader, self.writer) } diff --git a/embassy-usb/src/msos.rs b/embassy-usb/src/msos.rs index 218d9931a..187b2ff8e 100644 --- a/embassy-usb/src/msos.rs +++ b/embassy-usb/src/msos.rs @@ -186,7 +186,7 @@ impl<'d> MsOsDescriptorWriter<'d> { capability_type::PLATFORM, &[ 0, // reserved - // platform capability UUID, Microsoft OS 2.0 platform compabitility + // platform capability UUID, Microsoft OS 2.0 platform compatibility 0xdf, 0x60, 0xdd, -- cgit