@@ -715,7 +715,7 @@ impl DirEntry {
715
715
/// This function will not traverse symlinks if this entry points at a
716
716
/// symlink.
717
717
///
718
- /// # Platform behavior
718
+ /// # Platform-specific behavior
719
719
///
720
720
/// On Windows this function is cheap to call (no extra system calls
721
721
/// needed), but on Unix platforms this function is the equivalent of
@@ -730,7 +730,7 @@ impl DirEntry {
730
730
/// This function will not traverse symlinks if this entry points at a
731
731
/// symlink.
732
732
///
733
- /// # Platform behavior
733
+ /// # Platform-specific behavior
734
734
///
735
735
/// On Windows and most Unix platforms this function is free (no extra
736
736
/// system calls needed), but some Unix platforms may require the equivalent
@@ -758,12 +758,12 @@ impl AsInner<fs_imp::DirEntry> for DirEntry {
758
758
/// guarantee that the file is immediately deleted (e.g. depending on
759
759
/// platform, other open file descriptors may prevent immediate removal).
760
760
///
761
- /// # Platform behavior
761
+ /// # Platform-specific behavior
762
762
///
763
763
/// This function currently corresponds to the `unlink` function on Unix
764
764
/// and the `DeleteFile` function on Windows.
765
765
/// Note that, this [may change in the future][changes].
766
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
766
+ /// [changes]: ../io/index.html#platform-specific-behavior
767
767
///
768
768
/// # Errors
769
769
///
@@ -794,12 +794,12 @@ pub fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> {
794
794
/// This function will traverse symbolic links to query information about the
795
795
/// destination file.
796
796
///
797
- /// # Platform behavior
797
+ /// # Platform-specific behavior
798
798
///
799
799
/// This function currently corresponds to the `stat` function on Unix
800
800
/// and the `GetFileAttributesEx` function on Windows.
801
801
/// Note that, this [may change in the future][changes].
802
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
802
+ /// [changes]: ../io/index.html#platform-specific-behavior
803
803
///
804
804
/// # Errors
805
805
///
@@ -827,12 +827,12 @@ pub fn metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
827
827
828
828
/// Query the metadata about a file without following symlinks.
829
829
///
830
- /// # Platform behavior
830
+ /// # Platform-specific behavior
831
831
///
832
832
/// This function currently corresponds to the `lstat` function on Unix
833
833
/// and the `GetFileAttributesEx` function on Windows.
834
834
/// Note that, this [may change in the future][changes].
835
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
835
+ /// [changes]: ../io/index.html#platform-specific-behavior
836
836
///
837
837
/// # Errors
838
838
///
@@ -862,12 +862,12 @@ pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
862
862
///
863
863
/// This will not work if the new name is on a different mount point.
864
864
///
865
- /// # Platform behavior
865
+ /// # Platform-specific behavior
866
866
///
867
867
/// This function currently corresponds to the `rename` function on Unix
868
868
/// and the `MoveFileEx` function with the `MOVEFILE_REPLACE_EXISTING` flag on Windows.
869
869
/// Note that, this [may change in the future][changes].
870
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
870
+ /// [changes]: ../io/index.html#platform-specific-behavior
871
871
///
872
872
/// # Errors
873
873
///
@@ -903,14 +903,14 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()>
903
903
///
904
904
/// On success, the total number of bytes copied is returned.
905
905
///
906
- /// # Platform behavior
906
+ /// # Platform-specific behavior
907
907
///
908
908
/// This function currently corresponds to the `open` function in Unix
909
909
/// with `O_RDONLY` for `from` and `O_WRONLY`, `O_CREAT`, and `O_TRUNC` for `to`.
910
910
/// `O_CLOEXEC` is set for returned file descriptors.
911
911
/// On Windows, this function currently corresponds to `CopyFileEx`.
912
912
/// Note that, this [may change in the future][changes].
913
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
913
+ /// [changes]: ../io/index.html#platform-specific-behavior
914
914
///
915
915
/// # Errors
916
916
///
@@ -941,12 +941,12 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
941
941
/// The `dst` path will be a link pointing to the `src` path. Note that systems
942
942
/// often require these two paths to both be located on the same filesystem.
943
943
///
944
- /// # Platform behavior
944
+ /// # Platform-specific behavior
945
945
///
946
946
/// This function currently corresponds to the `link` function on Unix
947
947
/// and the `CreateHardLink` function on Windows.
948
948
/// Note that, this [may change in the future][changes].
949
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
949
+ /// [changes]: ../io/index.html#platform-specific-behavior
950
950
///
951
951
/// # Errors
952
952
///
@@ -998,13 +998,13 @@ pub fn soft_link<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<(
998
998
999
999
/// Reads a symbolic link, returning the file that the link points to.
1000
1000
///
1001
- /// # Platform behavior
1001
+ /// # Platform-specific behavior
1002
1002
///
1003
1003
/// This function currently corresponds to the `readlink` function on Unix
1004
1004
/// and the `CreateFile` function with `FILE_FLAG_OPEN_REPARSE_POINT` and
1005
1005
/// `FILE_FLAG_BACKUP_SEMANTICS` flags on Windows.
1006
1006
/// Note that, this [may change in the future][changes].
1007
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
1007
+ /// [changes]: ../io/index.html#platform-specific-behavior
1008
1008
///
1009
1009
/// # Errors
1010
1010
///
@@ -1032,12 +1032,12 @@ pub fn read_link<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
1032
1032
/// Returns the canonical form of a path with all intermediate components
1033
1033
/// normalized and symbolic links resolved.
1034
1034
///
1035
- /// # Platform behavior
1035
+ /// # Platform-specific behavior
1036
1036
///
1037
1037
/// This function currently corresponds to the `realpath` function on Unix
1038
1038
/// and the `CreateFile` and `GetFinalPathNameByHandle` functions on Windows.
1039
1039
/// Note that, this [may change in the future][changes].
1040
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
1040
+ /// [changes]: ../io/index.html#platform-specific-behavior
1041
1041
///
1042
1042
/// # Errors
1043
1043
///
@@ -1064,12 +1064,12 @@ pub fn canonicalize<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
1064
1064
1065
1065
/// Creates a new, empty directory at the provided path
1066
1066
///
1067
- /// # Platform behavior
1067
+ /// # Platform-specific behavior
1068
1068
///
1069
1069
/// This function currently corresponds to the `mkdir` function on Unix
1070
1070
/// and the `CreateDirectory` function on Windows.
1071
1071
/// Note that, this [may change in the future][changes].
1072
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
1072
+ /// [changes]: ../io/index.html#platform-specific-behavior
1073
1073
///
1074
1074
/// # Errors
1075
1075
///
@@ -1097,12 +1097,12 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
1097
1097
/// Recursively create a directory and all of its parent components if they
1098
1098
/// are missing.
1099
1099
///
1100
- /// # Platform behavior
1100
+ /// # Platform-specific behavior
1101
1101
///
1102
1102
/// This function currently corresponds to the `mkdir` function on Unix
1103
1103
/// and the `CreateDirectory` function on Windows.
1104
1104
/// Note that, this [may change in the future][changes].
1105
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
1105
+ /// [changes]: ../io/index.html#platform-specific-behavior
1106
1106
///
1107
1107
/// # Errors
1108
1108
///
@@ -1131,12 +1131,12 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
1131
1131
1132
1132
/// Removes an existing, empty directory.
1133
1133
///
1134
- /// # Platform behavior
1134
+ /// # Platform-specific behavior
1135
1135
///
1136
1136
/// This function currently corresponds to the `rmdir` function on Unix
1137
1137
/// and the `RemoveDirectory` function on Windows.
1138
1138
/// Note that, this [may change in the future][changes].
1139
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
1139
+ /// [changes]: ../io/index.html#platform-specific-behavior
1140
1140
///
1141
1141
/// # Errors
1142
1142
///
@@ -1167,13 +1167,13 @@ pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
1167
1167
/// This function does **not** follow symbolic links and it will simply remove the
1168
1168
/// symbolic link itself.
1169
1169
///
1170
- /// # Platform behavior
1170
+ /// # Platform-specific behavior
1171
1171
///
1172
1172
/// This function currently corresponds to `opendir`, `lstat`, `rm` and `rmdir` functions on Unix
1173
1173
/// and the `FindFirstFile`, `GetFileAttributesEx`, `DeleteFile`, and `RemoveDirectory` functions
1174
1174
/// on Windows.
1175
1175
/// Note that, this [may change in the future][changes].
1176
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
1176
+ /// [changes]: ../io/index.html#platform-specific-behavior
1177
1177
///
1178
1178
/// # Errors
1179
1179
///
@@ -1212,12 +1212,12 @@ fn _remove_dir_all(path: &Path) -> io::Result<()> {
1212
1212
/// The iterator will yield instances of `io::Result<DirEntry>`. New errors may
1213
1213
/// be encountered after an iterator is initially constructed.
1214
1214
///
1215
- /// # Platform behavior
1215
+ /// # Platform-specific behavior
1216
1216
///
1217
1217
/// This function currently corresponds to the `opendir` function on Unix
1218
1218
/// and the `FindFirstFile` function on Windows.
1219
1219
/// Note that, this [may change in the future][changes].
1220
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
1220
+ /// [changes]: ../io/index.html#platform-specific-behavior
1221
1221
///
1222
1222
/// # Errors
1223
1223
///
@@ -1315,12 +1315,12 @@ impl Iterator for WalkDir {
1315
1315
1316
1316
/// Changes the permissions found on a file or a directory.
1317
1317
///
1318
- /// # Platform behavior
1318
+ /// # Platform-specific behavior
1319
1319
///
1320
1320
/// This function currently corresponds to the `chmod` function on Unix
1321
1321
/// and the `SetFileAttributes` function on Windows.
1322
1322
/// Note that, this [may change in the future][changes].
1323
- /// [changes]: https://github.com/rust-lang/rust/pull/28613
1323
+ /// [changes]: ../io/index.html#platform-specific-behavior
1324
1324
///
1325
1325
/// # Errors
1326
1326
///
0 commit comments