diff options
author | Jakub Konka <kubkon@jakubkonka.com> | 2019-05-23 18:42:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 18:42:27 +0200 |
commit | a77e5009247355239333fa3f45c2c5ca92ad69f3 (patch) | |
tree | 96077e73e58f464ce1894c01a99f6ae0bc6b21a6 /src/fcntl.rs | |
parent | fdc4b46ac1ace4a8a850a8127fa650a1b4024848 (diff) | |
download | nix-a77e5009247355239333fa3f45c2c5ca92ad69f3.zip |
Update fcntl.rs
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 :-)
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r-- | src/fcntl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs index a763c10f..40f4cf94 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -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"))] |