We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f7baf7 commit aaf2519Copy full SHA for aaf2519
library/std/src/fs.rs
@@ -242,10 +242,10 @@ pub struct DirBuilder {
242
///
243
/// ```no_run
244
/// use std::fs;
245
-/// use std::net::SocketAddr;
246
247
/// fn main() -> Result<(), Box<dyn std::error::Error + 'static>> {
248
-/// let foo: SocketAddr = String::from_utf8_lossy(&fs::read("address.txt")?).parse()?;
+/// let address: String = String::from_utf8_lossy(&fs::read("address.txt")?).to_string();
+/// println!("{}", address);
249
/// Ok(())
250
/// }
251
/// ```
0 commit comments