Skip to content

Commit d69248a

Browse files
MathiasKocheldruin
andauthored
Update src/lib.rs
Co-authored-by: Diego Barrios Romero <[email protected]>
1 parent 4f4ab10 commit d69248a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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.

0 commit comments

Comments
 (0)