Skip to content

Commit

Permalink
Merge branch 'storage-rework' of github.com:rust-embedded-community/e…
Browse files Browse the repository at this point in the history
…mbedded-storage into storage-rework
  • Loading branch information
MathiasKoch committed May 7, 2021
2 parents 2cbb985 + 72560ac commit cb66428
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ keywords = ["storage"]
categories = ["embedded", "hardware-support", "no-std"]

[dependencies]
heapless = "^0.5"
heapless = "^0.5"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub trait ReadStorage {
/// operation at the given address offset, and reading `bytes.len()` bytes.
///
/// This should throw an error in case `bytes.len()` will be larger than
/// `self.capacity()`.
/// `self.capacity() - offset`.
fn try_read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;

/// The capacity of the storage peripheral in bytes.
Expand Down
2 changes: 1 addition & 1 deletion src/nor_flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub trait ReadNorFlash {
/// Read a slice of data from the storage peripheral, starting the read
/// operation at the given address offset, and reading `bytes.len()` bytes.
///
/// This should throw an error in case `bytes.len()` will be larger than
/// This should throw an error in case `bytes.len()` will be larger than
/// the peripheral end address.
fn try_read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;

Expand Down

0 comments on commit cb66428

Please sign in to comment.