diff options
| author | Haydon Ryan <haydon.ryan@gmail.com> | 2024-02-15 08:20:15 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-15 08:20:15 -0600 |
| commit | 9539feb2f73b1e9370e28a6dcdaf0fe51bc65465 (patch) | |
| tree | 98e9bd5044abf78f2e4bfc97c45917baf53c141e | |
| parent | 6e9ca489f703f055d98bf7a513b2491dbec63983 (diff) | |
| download | rust-9539feb2f73b1e9370e28a6dcdaf0fe51bc65465.tar.gz rust-9539feb2f73b1e9370e28a6dcdaf0fe51bc65465.zip | |
Update library/std/src/fs.rs
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
| -rw-r--r-- | library/std/src/fs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index acc0f37a688..29b61a8d1d0 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -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(()) /// } /// ``` |
