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 4029d4d commit c2f4a5bCopy full SHA for c2f4a5b
library/std/src/fs.rs
@@ -265,8 +265,9 @@ pub fn read<P: AsRef<Path>>(path: P) -> io::Result<Vec<u8>> {
265
/// ```no_run
266
/// use std::fs;
267
/// use std::net::SocketAddr;
268
+/// use std::error::Error;
269
///
-/// fn main() -> Result<(), Box<dyn std::error::Error + 'static>> {
270
+/// fn main() -> Result<(), Box<dyn Error>> {
271
/// let foo: SocketAddr = fs::read_to_string("address.txt")?.parse()?;
272
/// Ok(())
273
/// }
0 commit comments