Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed Oct 11, 2022
1 parent a55595c commit 1960e43
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion embedded-can/src/blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ pub trait Can {
/// the transmit buffer.
fn transmit(&mut self, frame: &Self::Frame) -> Result<(), Self::Error>;

/// Blocks until a frame was received or an error occured.
/// Blocks until a frame was received or an error occurred.
fn receive(&mut self) -> Result<Self::Frame, Self::Error>;
}
2 changes: 1 addition & 1 deletion embedded-can/src/nb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub trait Can {
///
/// # Notes for implementers
///
/// * Frames of equal identifier shall be transmited in FIFO fashion when more
/// * Frames of equal identifier shall be transmitted in FIFO fashion when more
/// than one transmit buffer is available.
/// * When replacing pending frames make sure the frame is not in the process of
/// being send to the bus.
Expand Down
4 changes: 2 additions & 2 deletions embedded-hal/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ pub enum ErrorKind {
ModeFault,
/// Received data does not conform to the peripheral configuration
FrameFormat,
/// An error occured while asserting or deasserting the Chip Select pin.
/// An error occurred while asserting or deasserting the Chip Select pin.
ChipSelectFault,
/// A different error occurred. The original error may contain more information.
Other,
Expand All @@ -276,7 +276,7 @@ impl core::fmt::Display for ErrorKind {
),
Self::ChipSelectFault => write!(
f,
"An error occured while asserting or deasserting the Chip Select pin"
"An error occurred while asserting or deasserting the Chip Select pin"
),
Self::Other => write!(
f,
Expand Down

0 comments on commit 1960e43

Please sign in to comment.