Skip to content

Commit cfee2ed

Browse files
committed
Warn that platform-specific behavior may change
1 parent 93e9f5e commit cfee2ed

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

library/std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()>
17391739
///
17401740
/// On MacOS, this function corresponds to `fclonefileat` and `fcopyfile`.
17411741
///
1742-
/// Note that, this [may change in the future][changes].
1742+
/// Note that platform-specific behavior [may change in the future][changes].
17431743
///
17441744
/// [changes]: io#platform-specific-behavior
17451745
///

library/std/src/io/copy.rs

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ use crate::mem::MaybeUninit;
4545
/// On Linux (including Android), this function uses `copy_file_range(2)`,
4646
/// `sendfile(2)` or `splice(2)` syscalls to move data directly between file
4747
/// descriptors if possible.
48+
///
49+
/// Note that platform-specific behavior [may change in the future][changes].
50+
///
51+
/// [changes]: crate::io#platform-specific-behavior
4852
#[stable(feature = "rust1", since = "1.0.0")]
4953
pub fn copy<R: ?Sized, W: ?Sized>(reader: &mut R, writer: &mut W) -> Result<u64>
5054
where

0 commit comments

Comments
 (0)