From 8ffede1f68a1b4dbfcb6bf47af746604a7c2c53f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Mon, 26 Jun 2023 19:16:06 +0200 Subject: [PATCH] Fix typos --- esp-hal-common/src/i2s.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/esp-hal-common/src/i2s.rs b/esp-hal-common/src/i2s.rs index 3bba5b2a2..ad8779609 100644 --- a/esp-hal-common/src/i2s.rs +++ b/esp-hal-common/src/i2s.rs @@ -357,7 +357,7 @@ where TX: Tx, { /// Write I2S. - /// Returns [I2sWriteDmaTransfer] which represents the in-ptrogress DMA + /// Returns [I2sWriteDmaTransfer] which represents the in-progress DMA /// transfer fn write_dma(self, words: TXBUF) -> Result, Error> where @@ -366,8 +366,8 @@ where TX: Tx, TXBUF: ReadBuffer; - /// Continously write to I2S. Returns [I2sWriteDmaTransfer] which represents - /// the in-ptrogress DMA transfer + /// Continuously write to I2S. Returns [I2sWriteDmaTransfer] which + /// represents the in-progress DMA transfer fn write_dma_circular( self, words: TXBUF, @@ -396,7 +396,7 @@ where P: I2sRxPins, RX: Rx, { - /// Amount of bytes which can be poped + /// Amount of bytes which can be popped pub fn available(&mut self) -> usize { self.i2s_rx.rx_channel.available() } @@ -479,7 +479,7 @@ pub trait I2sRead { fn read(&mut self, words: &mut [W]) -> Result<(), Error>; } -/// Initate a DMA rx transfer +/// Initiate a DMA rx transfer pub trait I2sReadDma<'d, T, P, RX, RXBUF> where T: RegisterAccess, @@ -487,7 +487,7 @@ where RX: Rx, { /// Read I2S. - /// Returns [I2sReadDmaTransfer] which represents the in-ptrogress DMA + /// Returns [I2sReadDmaTransfer] which represents the in-progress DMA /// transfer fn read_dma(self, words: RXBUF) -> Result, Error> where @@ -496,8 +496,8 @@ where RX: Rx, RXBUF: WriteBuffer; - /// Continously read from I2S. - /// Returns [I2sReadDmaTransfer] which represents the in-ptrogress DMA + /// Continuously read from I2S. + /// Returns [I2sReadDmaTransfer] which represents the in-progress DMA /// transfer fn read_dma_circular(self, words: RXBUF) -> Result, Error> where