From 3f9d4f1fbd1cfd5d10f454d9036fa71f4577b819 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 17 Jan 2009 05:52:16 +0000 Subject: [PATCH] rdoc update. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/raddrinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index e85109e401..0f89e9c5b6 100644 --- a/ext/socket/raddrinfo.c +++ b/ext/socket/raddrinfo.c @@ -1398,13 +1398,15 @@ addrinfo_s_getaddrinfo(int argc, VALUE *argv, VALUE self) return addrinfo_list_new(node, service, family, socktype, protocol, flags); } - /* * call-seq: * AddrInfo.ip(host) => addrinfo * * returns an addrinfo object for IP address. * + * The port, socktype, protocol of the result is filled by zero. + * So, it is not appropriate to create a socket. + * * AddrInfo.ip("localhost") #=> # */ static VALUE