@@ -5,7 +5,7 @@ pub trait Transfer<W> {
55 /// Error type
66 type Error ;
77
8- /// Sends `words` to the slave. Returns the `words` received from the slave
8+ /// Writes `words` to the slave. Returns the `words` received from the slave
99 fn transfer < ' w > ( & mut self , words : & ' w mut [ W ] ) -> Result < & ' w [ W ] , Self :: Error > ;
1010}
1111
@@ -14,7 +14,7 @@ pub trait Write<W> {
1414 /// Error type
1515 type Error ;
1616
17- /// Sends `words` to the slave, ignoring all the incoming words
17+ /// Writes `words` to the slave, ignoring all the incoming words
1818 fn write ( & mut self , words : & [ W ] ) -> Result < ( ) , Self :: Error > ;
1919}
2020
@@ -23,7 +23,7 @@ pub trait WriteIter<W> {
2323 /// Error type
2424 type Error ;
2525
26- /// Sends `words` to the slave, ignoring all the incoming words
26+ /// Writes `words` to the slave, ignoring all the incoming words
2727 fn write_iter < WI > ( & mut self , words : WI ) -> Result < ( ) , Self :: Error >
2828 where
2929 WI : IntoIterator < Item = W > ;
@@ -44,7 +44,7 @@ pub mod transfer {
4444
4545 fn transfer < ' w > ( & mut self , words : & ' w mut [ W ] ) -> Result < & ' w [ W ] , S :: Error > {
4646 for word in words. iter_mut ( ) {
47- nb:: block!( self . send ( word. clone( ) ) ) ?;
47+ nb:: block!( self . write ( word. clone( ) ) ) ?;
4848 * word = nb:: block!( self . read( ) ) ?;
4949 }
5050
@@ -68,7 +68,7 @@ pub mod write {
6868
6969 fn write ( & mut self , words : & [ W ] ) -> Result < ( ) , S :: Error > {
7070 for word in words {
71- nb:: block!( self . send ( word. clone( ) ) ) ?;
71+ nb:: block!( self . write ( word. clone( ) ) ) ?;
7272 nb:: block!( self . read( ) ) ?;
7373 }
7474
@@ -95,7 +95,7 @@ pub mod write_iter {
9595 WI : IntoIterator < Item = W > ,
9696 {
9797 for word in words. into_iter ( ) {
98- nb:: block!( self . send ( word. clone( ) ) ) ?;
98+ nb:: block!( self . write ( word. clone( ) ) ) ?;
9999 nb:: block!( self . read( ) ) ?;
100100 }
101101
0 commit comments