mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +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;
|
/// use std::error::Error;
|
||||||
///
|
///
|
||||||
/// fn main() -> Result<(), Box<dyn Error>> {
|
/// fn main() -> Result<(), Box<dyn Error>> {
|
||||||
/// let address: String = fs::read_to_string("address.txt")?;
|
/// let message: String = fs::read_to_string("message.txt")?;
|
||||||
/// println!("{}", address);
|
/// println!("{}", message);
|
||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
Loading…
Reference in New Issue
Block a user