231: Rename I2C iterator write method for consistency r=therealprof a=eldruin



Co-authored-by: Diego Barrios Romero <eldruin@gmail.com>
This commit is contained in:
bors[bot]
2020-07-05 11:18:24 +00:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Changed
- The method `try_write` from the trait `blocking::i2c::WriteIter` trait
has been renamed `try_write_iter` for consistency.
## [v1.0.0-alpha.1] - 2020-06-16
*** This is an alpha release with breaking changes (sorry) ***

View File

@@ -65,7 +65,7 @@ pub trait WriteIter {
/// # I2C Events (contract)
///
/// Same as `Write`
fn try_write<B>(&mut self, address: u8, bytes: B) -> Result<(), Self::Error>
fn try_write_iter<B>(&mut self, address: u8, bytes: B) -> Result<(), Self::Error>
where
B: IntoIterator<Item = u8>;
}