Skip to content

Commit cb66428

Browse files
committed
Merge branch 'storage-rework' of github.com:rust-embedded-community/embedded-storage into storage-rework
2 parents 2cbb985 + 72560ac commit cb66428

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ keywords = ["storage"]
1515
categories = ["embedded", "hardware-support", "no-std"]
1616

1717
[dependencies]
18-
heapless = "^0.5"
18+
heapless = "^0.5"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub trait ReadStorage {
2727
/// operation at the given address offset, and reading `bytes.len()` bytes.
2828
///
2929
/// This should throw an error in case `bytes.len()` will be larger than
30-
/// `self.capacity()`.
30+
/// `self.capacity() - offset`.
3131
fn try_read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;
3232

3333
/// The capacity of the storage peripheral in bytes.

src/nor_flash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub trait ReadNorFlash {
1111
/// Read a slice of data from the storage peripheral, starting the read
1212
/// operation at the given address offset, and reading `bytes.len()` bytes.
1313
///
14-
/// This should throw an error in case `bytes.len()` will be larger than
14+
/// This should throw an error in case `bytes.len()` will be larger than
1515
/// the peripheral end address.
1616
fn try_read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;
1717

0 commit comments

Comments
 (0)