diff options
| author | Daniel Collin <daniel@collin.com> | 2016-01-01 10:09:24 +0100 |
|---|---|---|
| committer | Daniel Collin <daniel@collin.com> | 2016-01-01 10:09:24 +0100 |
| commit | 9a7e2329f2f260cd9dafe3080dcc4cdb1dac53a3 (patch) | |
| tree | d48535e18e41b16fa6742987613a8981e2ea2036 /src/libstd | |
| parent | e24fffef8a560ddf968a866db8da96bc461f4038 (diff) | |
| download | rust-9a7e2329f2f260cd9dafe3080dcc4cdb1dac53a3.tar.gz rust-9a7e2329f2f260cd9dafe3080dcc4cdb1dac53a3.zip | |
Added comment in which direction operation happens
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index e00b02f518c..9e9c36dc8a3 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -841,7 +841,7 @@ pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> { /// use std::fs; /// /// # fn foo() -> std::io::Result<()> { -/// try!(fs::rename("a.txt", "b.txt")); +/// try!(fs::rename("a.txt", "b.txt")); // Rename a.txt to b.txt /// # Ok(()) /// # } /// ``` @@ -876,7 +876,7 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()> /// use std::fs; /// /// # fn foo() -> std::io::Result<()> { -/// try!(fs::copy("foo.txt", "bar.txt")); +/// try!(fs::copy("foo.txt", "bar.txt")); // Copy foo.txt to bar.txt /// # Ok(()) } /// ``` #[stable(feature = "rust1", since = "1.0.0")] @@ -895,7 +895,7 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> { /// use std::fs; /// /// # fn foo() -> std::io::Result<()> { -/// try!(fs::hard_link("a.txt", "b.txt")); +/// try!(fs::hard_link("a.txt", "b.txt")); // Hard link a.txt to b.txt /// # Ok(()) /// # } /// ``` |
