Skip to content

Commit

Permalink
Update library/std/src/fs.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Mara Bos <[email protected]>
  • Loading branch information
haydonryan and m-ou-se authored Feb 15, 2024
1 parent 9539feb commit b5e1ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ pub struct DirBuilder {
/// use std::fs;
///
/// fn main() -> Result<(), Box<dyn std::error::Error + 'static>> {
/// let address: String = String::from_utf8_lossy(&fs::read("address.txt")?).to_string();
/// println!("{}", address);
/// let data: Vec<u8> = fs::read("image.jpg")?;
/// assert_eq!(data[0..3], [0xFF, 0xD8, 0xFF]);
/// Ok(())
/// }
/// ```
Expand Down

0 comments on commit b5e1ca3

Please sign in to comment.