Skip to content

Commit f88ddc5

Browse files
bors[bot]eldruin
andauthored
Merge #228
228: Standardize address wording r=therealprof a=eldruin For consistency. Credit goes to @BroderickCarlin for noticing in #147. Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents 70bed3a + 69606d4 commit f88ddc5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/blocking/i2c.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub trait Write {
3636
/// Error type
3737
type Error;
3838

39-
/// Sends bytes to slave with address `addr`
39+
/// Sends bytes to slave with address `address`
4040
///
4141
/// # I2C Events (contract)
4242
///
@@ -52,20 +52,20 @@ pub trait Write {
5252
/// - `SAK` = slave acknowledge
5353
/// - `Bi` = ith byte of data
5454
/// - `SP` = stop condition
55-
fn try_write(&mut self, addr: u8, bytes: &[u8]) -> Result<(), Self::Error>;
55+
fn try_write(&mut self, address: u8, bytes: &[u8]) -> Result<(), Self::Error>;
5656
}
5757

5858
/// Blocking write (iterator version)
5959
pub trait WriteIter {
6060
/// Error type
6161
type Error;
6262

63-
/// Sends bytes to slave with address `addr`
63+
/// Sends bytes to slave with address `address`
6464
///
6565
/// # I2C Events (contract)
6666
///
6767
/// Same as `Write`
68-
fn try_write<B>(&mut self, addr: u8, bytes: B) -> Result<(), Self::Error>
68+
fn try_write<B>(&mut self, address: u8, bytes: B) -> Result<(), Self::Error>
6969
where
7070
B: IntoIterator<Item = u8>;
7171
}
@@ -75,7 +75,7 @@ pub trait WriteRead {
7575
/// Error type
7676
type Error;
7777

78-
/// Sends bytes to slave with address `addr` and then reads enough bytes to fill `buffer` *in a
78+
/// Sends bytes to slave with address `address` and then reads enough bytes to fill `buffer` *in a
7979
/// single transaction*
8080
///
8181
/// # I2C Events (contract)
@@ -110,7 +110,7 @@ pub trait WriteIterRead {
110110
/// Error type
111111
type Error;
112112

113-
/// Sends bytes to slave with address `addr` and then reads enough bytes to fill `buffer` *in a
113+
/// Sends bytes to slave with address `address` and then reads enough bytes to fill `buffer` *in a
114114
/// single transaction*
115115
///
116116
/// # I2C Events (contract)

0 commit comments

Comments
 (0)