Fix some typos
This commit is contained in:
@ -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<usize, EndpointError> {
|
||||
// Retry loop
|
||||
loop {
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user