From 9a7e2329f2f260cd9dafe3080dcc4cdb1dac53a3 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Fri, 1 Jan 2016 10:09:24 +0100 Subject: [PATCH] Added comment in which direction operation happens --- src/libstd/fs.rs | 6 +++--- 1 file 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>(path: P) -> io::Result { /// 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, Q: AsRef>(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, Q: AsRef>(from: P, to: Q) -> io::Result { /// 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(()) /// # } /// ```