mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Update library/std/src/fs.rs
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
This commit is contained in:
parent
6e9ca489f7
commit
9539feb2f7
@ -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(())
|
||||
/// }
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user