Skip to content

Commit b5e1ca3

Browse files
haydonryanm-ou-se
andauthored
Update library/std/src/fs.rs
Co-authored-by: Mara Bos <[email protected]>
1 parent 9539feb commit b5e1ca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ pub struct DirBuilder {
244244
/// use std::fs;
245245
///
246246
/// fn main() -> Result<(), Box<dyn std::error::Error + 'static>> {
247-
/// let address: String = String::from_utf8_lossy(&fs::read("address.txt")?).to_string();
248-
/// println!("{}", address);
247+
/// let data: Vec<u8> = fs::read("image.jpg")?;
248+
/// assert_eq!(data[0..3], [0xFF, 0xD8, 0xFF]);
249249
/// Ok(())
250250
/// }
251251
/// ```

0 commit comments

Comments
 (0)