]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/net/tcp.rs
Various minor/cosmetic improvements to code
[rust.git] / src / libstd / net / tcp.rs
index be797803233a86123e478acb2da4cf056bcc54c2..5aa043b0fcb2c37769e976b507c4de9453ac7a1a 100644 (file)
@@ -530,7 +530,7 @@ pub fn take_error(&self) -> io::Result<Option<io::Error>> {
     /// Moves this TCP stream into or out of nonblocking mode.
     ///
     /// This will result in `read`, `write`, `recv` and `send` operations
-    /// becoming nonblocking, i.e. immediately returning from their calls.
+    /// becoming nonblocking, i.e., immediately returning from their calls.
     /// If the IO operation is successful, `Ok` is returned and no further
     /// action is required. If the IO operation could not be completed and needs
     /// to be retried, an error with kind [`io::ErrorKind::WouldBlock`] is
@@ -840,7 +840,7 @@ pub fn take_error(&self) -> io::Result<Option<io::Error>> {
     /// Moves this TCP stream into or out of nonblocking mode.
     ///
     /// This will result in the `accept` operation becoming nonblocking,
-    /// i.e. immediately returning from their calls. If the IO operation is
+    /// i.e., immediately returning from their calls. If the IO operation is
     /// successful, `Ok` is returned and no further action is required. If the
     /// IO operation could not be completed and needs to be retried, an error
     /// with kind [`io::ErrorKind::WouldBlock`] is returned.