diff options
| author | bors <bors@rust-lang.org> | 2015-08-11 06:11:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-08-11 06:11:29 +0000 |
| commit | f1ae605db8944f874994bab2879819f86f0250e2 (patch) | |
| tree | 77ab15b5db458edbc5cc1824ce3ad697e09b6945 /src/libstd/sys | |
| parent | 50141d7e1e5b1b539d45240dff709fa68e7472c2 (diff) | |
| parent | ae25b7750271282d298e003211b567e840527900 (diff) | |
| download | rust-f1ae605db8944f874994bab2879819f86f0250e2.tar.gz rust-f1ae605db8944f874994bab2879819f86f0250e2.zip | |
Auto merge of #27549 - tshepang:clarity, r=alexcrichton
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index ddab24b133f..e671b2c8e0d 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -536,7 +536,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> { use fs::{File, PathExt, set_permissions}; if !from.is_file() { return Err(Error::new(ErrorKind::InvalidInput, - "the source path is not an existing file")) + "the source path is not an existing regular file")) } let mut reader = try!(File::open(from)); |
