From b081bcbc69211ef76cbc4c3a028a2287a6d43cc0 Mon Sep 17 00:00:00 2001 From: David Albert Date: Wed, 3 Oct 2012 17:46:19 -0400 Subject: [PATCH] Fix typo in Socket docs --- ext/socket/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 5a8bf07..031b97c 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1881,7 +1881,7 @@ Init_socket() * sockets of these types compared to C programming. * * # Creating a TCP socket in a C-like manner - * s = Socket.new Socket::INET, Socket::SOCK_STREAM + * s = Socket.new Socket::AF_INET, Socket::SOCK_STREAM * s.connect Socket.pack_sockaddr_in(80, 'example.com') * * # Using TCPSocket -- 1.7.12.1