We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e2dac8 commit 547f3ceCopy full SHA for 547f3ce
library/std/src/fs.rs
@@ -283,11 +283,11 @@ pub fn read<P: AsRef<Path>>(path: P) -> io::Result<Vec<u8>> {
283
///
284
/// ```no_run
285
/// use std::fs;
286
-/// use std::net::SocketAddr;
287
/// use std::error::Error;
288
289
/// fn main() -> Result<(), Box<dyn Error>> {
290
-/// let foo: SocketAddr = fs::read_to_string("address.txt")?.parse()?;
+/// let address: String = fs::read_to_string("address.txt")?;
+/// println!("{}", address);
291
/// Ok(())
292
/// }
293
/// ```
0 commit comments