diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-05 03:57:32 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-05 03:57:32 +0000 |
commit | 4043565023531d173478c216e2a9cc6228f44a7e (patch) | |
tree | 4fed65eea80438d797c2acec1efb09bf4cb8a6b7 /ext/socket/udpsocket.c | |
parent | 0d81bbcbbc0681e9006543f40a3286a442935a80 (diff) | |
download | ruby-4043565023531d173478c216e2a9cc6228f44a7e.tar.gz |
* ext/socket/*.c: Add proper require for example to work.
[fix GH-1378][ci skip] Patch by @schneems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/udpsocket.c')
-rw-r--r-- | ext/socket/udpsocket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/udpsocket.c b/ext/socket/udpsocket.c index 7b7b34f04d..c2e273c2a3 100644 --- a/ext/socket/udpsocket.c +++ b/ext/socket/udpsocket.c @@ -19,6 +19,8 @@ * _address_family_ should be an integer, a string or a symbol: * Socket::AF_INET, "AF_INET", :INET, etc. * + * require 'socket' + * * UDPSocket.new #=> #<UDPSocket:fd 3> * UDPSocket.new(Socket::AF_INET6) #=> #<UDPSocket:fd 4> * |