summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/init.c2
-rw-r--r--ext/socket/socket.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/socket/init.c b/ext/socket/init.c
index a69d2e7..a12800b 100644
--- a/ext/socket/init.c
+++ b/ext/socket/init.c
@@ -308,7 +308,7 @@ wait_connectable(int fd)
for (;;) {
/*
- * Stevens book says, succuessful finish turn on RB_WAITFD_OUT and
+ * Stevens book says, successful finish turn on RB_WAITFD_OUT and
* failure finish turn on both RB_WAITFD_IN and RB_WAITFD_OUT.
*/
revents = rb_wait_for_single_fd(fd, RB_WAITFD_IN|RB_WAITFD_OUT, NULL);
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index ca256b6..0cddd23 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -2006,7 +2006,7 @@ Init_socket()
*
* === What's a socket?
*
- * Sockets are endpoints of a bidirectionnal communication channel.
+ * Sockets are endpoints of a bidirectional communication channel.
* Sockets can communicate within a process, between processes on the same
* machine or between different machines. There are many types of socket:
* TCPSocket, UDPSocket or UNIXSocket for example.
@@ -2031,7 +2031,7 @@ Init_socket()
*
* *hostname:*
* The identifier of a network interface:
- * * a string (hostname, IPv4 or IPv6 adress or +broadcast+
+ * * a string (hostname, IPv4 or IPv6 address or +broadcast+
* which specifies a broadcast address)
* * a zero-length string which specifies INADDR_ANY
* * an integer (interpreted as binary address in host byte order).