Skip to content

Commit c2f15c6

Browse files
bors[bot]eldruin
andauthored
Merge #231
231: Rename I2C iterator write method for consistency r=therealprof a=eldruin Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents f88ddc5 + a61cc4f commit c2f15c6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88

99
## [Unreleased]
1010

11+
### Changed
12+
- The method `try_write` from the trait `blocking::i2c::WriteIter` trait
13+
has been renamed `try_write_iter` for consistency.
14+
1115
## [v1.0.0-alpha.1] - 2020-06-16
1216

1317
*** This is an alpha release with breaking changes (sorry) ***

src/blocking/i2c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub trait WriteIter {
6565
/// # I2C Events (contract)
6666
///
6767
/// Same as `Write`
68-
fn try_write<B>(&mut self, address: u8, bytes: B) -> Result<(), Self::Error>
68+
fn try_write_iter<B>(&mut self, address: u8, bytes: B) -> Result<(), Self::Error>
6969
where
7070
B: IntoIterator<Item = u8>;
7171
}

0 commit comments

Comments
 (0)