Skip to content

Commit

Permalink
Merge #1065
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bors[bot] and kubkon committed May 23, 2019
2 parents fdc4b46 + a77e500 commit 4a2fcba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fcntl.rs
Expand Up @@ -105,7 +105,7 @@ libc_bitflags!(
O_RDONLY;
/// Allow both reading and writing.
///
/// This should not be combined with `O_WRONLY` or `O_RDWR`.
/// This should not be combined with `O_WRONLY` or `O_RDONLY`.
O_RDWR;
/// Similar to `O_DSYNC` but applies to `read`s instead.
#[cfg(any(target_os = "linux", target_os = "netbsd", target_os = "openbsd"))]
Expand Down

0 comments on commit 4a2fcba

Please sign in to comment.