mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Update docs for fs::hard_link
This commit is contained in:
parent
dc38d87505
commit
5022c0638d
@ -1736,8 +1736,11 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
|
||||
///
|
||||
/// # Platform-specific behavior
|
||||
///
|
||||
/// This function currently corresponds to the `linkat` function with no flags
|
||||
/// on Unix and the `CreateHardLink` function on Windows.
|
||||
/// This function currently corresponds the `CreateHardLink` function on Windows.
|
||||
/// On most Unix systems, it corresponds to the `linkat` function with no flags.
|
||||
/// On Android, VxWorks, and Redox, it instead corresponds to the `link` function.
|
||||
/// On MacOS, it uses the `linkat` function if it is available, but on very old
|
||||
/// systems where `linkat` is not available, `link` is selected at runtime instead.
|
||||
/// Note that, this [may change in the future][changes].
|
||||
///
|
||||
/// [changes]: io#platform-specific-behavior
|
||||
|
Loading…
Reference in New Issue
Block a user