Skip to content

Commit a2463fa

Browse files
committed
can: Fix comment typos
1 parent 632d084 commit a2463fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/can.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ pub trait Frame {
3232

3333
/// Returns the data length code (DLC) which is in the range 0..8.
3434
///
35-
/// For data frames the DLC value always matches the lenght of the data.
36-
/// Remote frames no not carry any data, yet the DLC can be greater than 0.
35+
/// For data frames the DLC value always matches the length of the data.
36+
/// Remote frames do not carry any data, yet the DLC can be greater than 0.
3737
fn dlc(&self) -> usize;
3838

3939
/// Returns the frame data (0..8 bytes in length).
@@ -105,7 +105,7 @@ pub enum RtrFilterBehavior {
105105
OnlyRemote,
106106
}
107107

108-
/// A filter group with it’s capabilities.
108+
/// A filter group with its capabilities.
109109
pub trait FilterGroup {
110110
/// Returns the number of consecutive filter with the same capability.
111111
fn num_filters(&self) -> usize;
@@ -151,7 +151,7 @@ pub trait Filter {
151151
/// Only available for filters with `RtrFilterBehavior::Configurable`.
152152
fn allow_remote(&mut self) -> &mut Self;
153153

154-
/// Makes the filter acccept both data and remote frames.
154+
/// Makes the filter acccept remote frames only.
155155
///
156156
/// Sets the RTR bit in the filter and clears it in the mask (if available).
157157
/// Only available for filters with `RtrFilterBehavior::Configurable` or

0 commit comments

Comments
 (0)