@@ -36,7 +36,7 @@ pub trait Write {
36
36
/// Error type
37
37
type Error ;
38
38
39
- /// Sends bytes to slave with address `addr `
39
+ /// Sends bytes to slave with address `address `
40
40
///
41
41
/// # I2C Events (contract)
42
42
///
@@ -52,20 +52,20 @@ pub trait Write {
52
52
/// - `SAK` = slave acknowledge
53
53
/// - `Bi` = ith byte of data
54
54
/// - `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 > ;
56
56
}
57
57
58
58
/// Blocking write (iterator version)
59
59
pub trait WriteIter {
60
60
/// Error type
61
61
type Error ;
62
62
63
- /// Sends bytes to slave with address `addr `
63
+ /// Sends bytes to slave with address `address `
64
64
///
65
65
/// # I2C Events (contract)
66
66
///
67
67
/// 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 >
69
69
where
70
70
B : IntoIterator < Item = u8 > ;
71
71
}
@@ -75,7 +75,7 @@ pub trait WriteRead {
75
75
/// Error type
76
76
type Error ;
77
77
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
79
79
/// single transaction*
80
80
///
81
81
/// # I2C Events (contract)
@@ -110,7 +110,7 @@ pub trait WriteIterRead {
110
110
/// Error type
111
111
type Error ;
112
112
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
114
114
/// single transaction*
115
115
///
116
116
/// # I2C Events (contract)
0 commit comments