Skip to content

Commit

Permalink
fixing error std::fs::read_to_string example documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
haydonryan committed Dec 11, 2023
1 parent dc85a36 commit 8435453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ 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")?.parse()?;
/// let address: String = fs::read_to_string("address.txt")?;
/// println!("{}", address);
/// Ok(())
/// }
Expand Down

0 comments on commit 8435453

Please sign in to comment.