summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-19 05:43:23 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-19 05:43:23 +0000
commitd1ab866d4ab3508c596a48226deb38925f799a88 (patch)
tree31a0d08a0bfefdcf2db6dd87e959efbd1d839400 /ext/socket
parent4ca7f26d068a4c88e30c70e92057aa97e8ad1fe2 (diff)
* ext/nkf/nkf-utf8/nkf.c: fix typo by @windwiny [fix GH-506]
* ext/openssl/ossl_ssl.c: ditto * ext/psych/yaml/scanner.c: ditto * ext/socket/init.c: ditto * ext/socket/socket.c: ditto * ext/tk/tcltklib.c: ditto * ext/win32ole/win32ole.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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).