We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9539feb commit b5e1ca3Copy full SHA for b5e1ca3
library/std/src/fs.rs
@@ -244,8 +244,8 @@ pub struct DirBuilder {
244
/// use std::fs;
245
///
246
/// 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);
+/// let data: Vec<u8> = fs::read("image.jpg")?;
+/// assert_eq!(data[0..3], [0xFF, 0xD8, 0xFF]);
249
/// Ok(())
250
/// }
251
/// ```
0 commit comments