Update library/std/src/fs.rs

Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
This commit is contained in:
Haydon Ryan 2024-02-15 08:20:15 -06:00 committed by GitHub
parent 6e9ca489f7
commit 9539feb2f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -286,8 +286,8 @@ pub fn read<P: AsRef<Path>>(path: P) -> io::Result<Vec<u8>> {
/// use std::error::Error;
///
/// fn main() -> Result<(), Box<dyn Error>> {
/// let address: String = fs::read_to_string("address.txt")?;
/// println!("{}", address);
/// let message: String = fs::read_to_string("message.txt")?;
/// println!("{}", message);
/// Ok(())
/// }
/// ```