Skip to content

Commit 9bf91f1

Browse files
committed
Add to docs
1 parent 1a86e28 commit 9bf91f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

embedded-storage-async/src/nor_flash.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ pub trait ReadNorFlash: ErrorType {
1919
async fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;
2020

2121
/// The capacity of the peripheral in bytes.
22+
///
23+
/// # Errors
24+
///
25+
/// Returns an error if the IO operation fails.
2226
async fn capacity(&self) -> Result<usize, Self::Error>;
2327
}
2428

0 commit comments

Comments
 (0)