about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2018-08-14 23:31:17 -0400
committerCorey Farwell <coreyf@rwell.org>2018-08-14 23:33:47 -0400
commit5f198a5e442bfef37e752594a6d037e7e143e42f (patch)
tree4c15b8138fba552831f52750f3d07b162b8eed70 /src/libstd/io
parent5bb923988f949639f11dba0c1ab1980fe8dfec3d (diff)
downloadrust-5f198a5e442bfef37e752594a6d037e7e143e42f.tar.gz
rust-5f198a5e442bfef37e752594a6d037e7e143e42f.zip
Cross reference io::copy and fs::copy in docs.
Fixes https://github.com/rust-lang/rust/issues/52524.
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/util.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstd/io/util.rs b/src/libstd/io/util.rs
index 33f741dbc38..371e5b21c13 100644
--- a/src/libstd/io/util.rs
+++ b/src/libstd/io/util.rs
@@ -23,6 +23,11 @@ use mem;
 /// On success, the total number of bytes that were copied from
 /// `reader` to `writer` is returned.
 ///
+/// If you’re wanting to copy the contents of one file to another and you’re
+/// working with filesystem paths, see the [`fs::copy`] function.
+///
+/// [`fs::copy`]: ../fs/fn.copy.html
+///
 /// # Errors
 ///
 /// This function will return an error immediately if any call to `read` or