Skip to content

Commit 6ee394c

Browse files
committed
review
1 parent 64659b0 commit 6ee394c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

library/std/src/net/tcp.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ use crate::time::Duration;
5656
///
5757
/// # Platform-specific Behavior
5858
///
59-
/// On Unix writes to the underlying socket in `SOCK_STREAM` mode are made with `MSG_NOSIGNAL` flag.
59+
/// On Unix, writes to the underlying socket in `SOCK_STREAM` mode are made with
60+
/// `MSG_NOSIGNAL` flag.
6061
/// This suppresses the emission of the `SIGPIPE` signal when writing to disconnected socket.
61-
/// In some cases getting a `SIGPIPE` would trigger process termination.
62+
/// In some cases, getting a `SIGPIPE` would trigger process termination.
6263
#[stable(feature = "rust1", since = "1.0.0")]
6364
pub struct TcpStream(net_imp::TcpStream);
6465

library/std/src/os/unix/net/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ use crate::time::Duration;
5757
/// }
5858
/// ```
5959
///
60-
/// # SIGPIPE
60+
/// # `SIGPIPE`
6161
///
6262
/// Writes to the underlying socket in `SOCK_STREAM` mode are made with `MSG_NOSIGNAL` flag.
6363
/// This suppresses the emission of the `SIGPIPE` signal when writing to disconnected socket.

0 commit comments

Comments
 (0)