Skip to content

Commit

Permalink
Rename Shutdown::ReadWrite to Shutdown::Both. (#1264)
Browse files Browse the repository at this point in the history
This better [aligns with std].

[aligns with std]: https://doc.rust-lang.org/stable/std/net/enum.Shutdown.html#variant.Both
  • Loading branch information
sunfishcode authored Jan 13, 2025
1 parent 2268402 commit 5f8eaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ pub enum Shutdown {
/// `SHUT_WR`—Disable further write operations.
Write = c::SHUT_WR as _,
/// `SHUT_RDWR`—Disable further read and write operations.
ReadWrite = c::SHUT_RDWR as _,
Both = c::SHUT_RDWR as _,
}

bitflags! {
Expand Down

0 comments on commit 5f8eaf0

Please sign in to comment.