diff --git a/README.md b/README.md index 3ba2918..9b881a2 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ let mut root_dir = volume0.open_root_dir()?; // Open a file called "MY_FILE.TXT" in the root directory // This mutably borrows the directory. let mut my_file = root_dir.open_file_in_dir("MY_FILE.TXT", embedded_sdmmc::Mode::ReadOnly)?; -// Print the contents of the file +// Print the contents of the file, assuming it's in ISO-8859-1 encoding while !my_file.is_eof() { let mut buffer = [0u8; 32]; let num_read = my_file.read(&mut buffer)?; diff --git a/examples/readme_test.rs b/examples/readme_test.rs index 2069694..ed4b146 100644 --- a/examples/readme_test.rs +++ b/examples/readme_test.rs @@ -120,7 +120,7 @@ fn main() -> Result<(), Error> { // Open a file called "MY_FILE.TXT" in the root directory // This mutably borrows the directory. let mut my_file = root_dir.open_file_in_dir("MY_FILE.TXT", embedded_sdmmc::Mode::ReadOnly)?; - // Print the contents of the file + // Print the contents of the file, assuming it's in ISO-8859-1 encoding while !my_file.is_eof() { let mut buffer = [0u8; 32]; let num_read = my_file.read(&mut buffer)?;