about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHaydon Ryan <haydon.ryan@gmail.com>2024-02-15 08:20:15 -0600
committerGitHub <noreply@github.com>2024-02-15 08:20:15 -0600
commit9539feb2f73b1e9370e28a6dcdaf0fe51bc65465 (patch)
tree98e9bd5044abf78f2e4bfc97c45917baf53c141e
parent6e9ca489f703f055d98bf7a513b2491dbec63983 (diff)
downloadrust-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.rs4
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(())
 /// }
 /// ```