Skip to content

Commit 4a2fcba

Browse files
bors[bot]kubkon
andcommitted
Merge #1065
1065: Update fcntl.rs r=asomers a=kubkon Just a minor typo in the docs of `O_RDWR`. It read: ``` /// Allow both reading and writing. /// /// This should not be combined with `O_WRONLY` or `O_RDWR`. O_RDWR; ``` but I believe it should read ``` /// Allow both reading and writing. /// /// This should not be combined with `O_WRONLY` or `O_RDONLY`. O_RDWR; ``` instead :-) Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
2 parents fdc4b46 + a77e500 commit 4a2fcba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fcntl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ libc_bitflags!(
105105
O_RDONLY;
106106
/// Allow both reading and writing.
107107
///
108-
/// This should not be combined with `O_WRONLY` or `O_RDWR`.
108+
/// This should not be combined with `O_WRONLY` or `O_RDONLY`.
109109
O_RDWR;
110110
/// Similar to `O_DSYNC` but applies to `read`s instead.
111111
#[cfg(any(target_os = "linux", target_os = "netbsd", target_os = "openbsd"))]

0 commit comments

Comments
 (0)