]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/unix/ext/net.rs
Various minor/cosmetic improvements to code
[rust.git] / src / libstd / sys / unix / ext / net.rs
index 737437c76b7c439daff85a09f11fdf773de37939..bcf0d440ebadcf15a75b3232a6b4e76d0ff48fe3 100644 (file)
@@ -132,7 +132,7 @@ fn from_parts(addr: libc::sockaddr_un, mut len: libc::socklen_t) -> io::Result<S
         if len == 0 {
             // When there is a datagram from unnamed unix socket
             // linux returns zero bytes of address
-            len = sun_path_offset() as libc::socklen_t;  // i.e. zero-length address
+            len = sun_path_offset() as libc::socklen_t;  // i.e., zero-length address
         } else if addr.sun_family != libc::AF_UNIX as libc::sa_family_t {
             return Err(io::Error::new(io::ErrorKind::InvalidInput,
                                       "file descriptor did not correspond to a Unix socket"));