diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-11-25 17:05:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-25 17:05:03 +0100 |
| commit | 6398df1520638c68bb75daa33d64c75387c26b1f (patch) | |
| tree | 1408ff0aafcbd3ef385353f2ee61048b6dd242d2 /src/libstd | |
| parent | 45e5a856a6551ae1b77fe8c5585e80f886b44b6e (diff) | |
| parent | ebb1a48b415c1b586bb652d58f3d2078d87f44dd (diff) | |
| download | rust-6398df1520638c68bb75daa33d64c75387c26b1f.tar.gz rust-6398df1520638c68bb75daa33d64c75387c26b1f.zip | |
Rollup merge of #56101 - frewsxcv:frewsxcv-dyn, r=steveklabnik
Incorporate `dyn` into more comments and docs. r? @rust-lang/docs
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index f4703dec187..92678dd5ced 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -256,7 +256,7 @@ fn initial_buffer_size(file: &File) -> usize { /// use std::fs; /// use std::net::SocketAddr; /// -/// fn main() -> Result<(), Box<std::error::Error + 'static>> { +/// fn main() -> Result<(), Box<dyn std::error::Error + 'static>> { /// let foo: SocketAddr = String::from_utf8_lossy(&fs::read("address.txt")?).parse()?; /// Ok(()) /// } @@ -298,7 +298,7 @@ pub fn read<P: AsRef<Path>>(path: P) -> io::Result<Vec<u8>> { /// use std::fs; /// use std::net::SocketAddr; /// -/// fn main() -> Result<(), Box<std::error::Error + 'static>> { +/// fn main() -> Result<(), Box<dyn std::error::Error + 'static>> { /// let foo: SocketAddr = fs::read_to_string("address.txt")?.parse()?; /// Ok(()) /// } |
