Skip to content

Commit 4fab308

Browse files
Remove misleading always-true if cfg!(unix)
1 parent 38695cc commit 4fab308

File tree

1 file changed

+1
-3
lines changed
  • library/std/src/os/unix

1 file changed

+1
-3
lines changed

library/std/src/os/unix/fs.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,7 @@ pub trait OpenOptionsExt {
423423
/// # fn main() {
424424
/// let mut options = OpenOptions::new();
425425
/// options.write(true);
426-
/// if cfg!(unix) {
427-
/// options.custom_flags(libc::O_NOFOLLOW);
428-
/// }
426+
/// options.custom_flags(libc::O_NOFOLLOW);
429427
/// let file = options.open("foo.txt");
430428
/// # }
431429
/// ```

0 commit comments

Comments
 (0)