]> git.lizzy.rs Git - rust.git/commitdiff
Remove Windows details from Unix and VmWorks symlink() docstrings
authorNicholas Bishop <nicholasbishop@gmail.com>
Sat, 12 Sep 2020 19:47:52 +0000 (15:47 -0400)
committerNicholas Bishop <nicholasbishop@gmail.com>
Sat, 12 Sep 2020 19:50:28 +0000 (15:50 -0400)
This note is not relevant to other operating systems.

library/std/src/sys/unix/ext/fs.rs
library/std/src/sys/vxworks/ext/fs.rs

index 487ac266ee9cdbc71547f0f6f922a8b5760de475..4b9f4ceb29c490f857eccb729d26289eb8dbb69d 100644 (file)
@@ -836,15 +836,6 @@ fn ino(&self) -> u64 {
 ///
 /// The `dst` path will be a symbolic link pointing to the `src` path.
 ///
-/// # Note
-///
-/// On Windows, you must specify whether a symbolic link points to a file
-/// or directory. Use `os::windows::fs::symlink_file` to create a
-/// symbolic link to a file, or `os::windows::fs::symlink_dir` to create a
-/// symbolic link to a directory. Additionally, the process must have
-/// `SeCreateSymbolicLinkPrivilege` in order to be able to create a
-/// symbolic link.
-///
 /// # Examples
 ///
 /// ```no_run
index 9b4c64bdb6d84daaefde02a8edc10608c4391205..68dc21b806c0fd70cb0be6555939bf9dc8b3a3bb 100644 (file)
@@ -774,15 +774,6 @@ fn ino(&self) -> u64 {
 ///
 /// The `dst` path will be a symbolic link pointing to the `src` path.
 ///
-/// # Note
-///
-/// On Windows, you must specify whether a symbolic link points to a file
-/// or directory.  Use `os::windows::fs::symlink_file` to create a
-/// symbolic link to a file, or `os::windows::fs::symlink_dir` to create a
-/// symbolic link to a directory.  Additionally, the process must have
-/// `SeCreateSymbolicLinkPrivilege` in order to be able to create a
-/// symbolic link.
-///
 /// # Examples
 ///
 /// ```no_run