We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38695cc commit 4fab308Copy full SHA for 4fab308
library/std/src/os/unix/fs.rs
@@ -423,9 +423,7 @@ pub trait OpenOptionsExt {
423
/// # fn main() {
424
/// let mut options = OpenOptions::new();
425
/// options.write(true);
426
- /// if cfg!(unix) {
427
- /// options.custom_flags(libc::O_NOFOLLOW);
428
- /// }
+ /// options.custom_flags(libc::O_NOFOLLOW);
429
/// let file = options.open("foo.txt");
430
/// # }
431
/// ```
0 commit comments