summaryrefslogtreecommitdiffstats
path: root/ext/socket/raddrinfo.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-26 14:18:09 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-26 14:18:09 +0000
commit1bd334768f4abeb01740a0ef6e174a67db6953c2 (patch)
tree0e917bfbad82348e9c695fdbb7de924807713393 /ext/socket/raddrinfo.c
parentcc4a5a6bdee491c5439f07d95234668dbb956e72 (diff)
downloadruby-1bd334768f4abeb01740a0ef6e174a67db6953c2.tar.gz
ruby-1bd334768f4abeb01740a0ef6e174a67db6953c2.tar.xz
ruby-1bd334768f4abeb01740a0ef6e174a67db6953c2.zip
rdoc update.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/raddrinfo.c')
-rw-r--r--ext/socket/raddrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index 29bcae1e2..eead91170 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -746,7 +746,7 @@ init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path, int socktype)
* Addrinfo.new(sockaddr, family, socktype, protocol) => addrinfo
*
* returns a new instance of Addrinfo.
- * It the instnace contains sockaddr, family, socktype, protocol.
+ * The instnace contains sockaddr, family, socktype, protocol.
* sockaddr means struct sockaddr which can be used for connect(2), etc.
* family, socktype and protocol are integers which is used for arguments of socket(2).
*
@@ -766,7 +766,7 @@ init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path, int socktype)
*
* In an AF_INET/AF_INET6 sockaddr array, the 4th element,
* numeric IP address, is used to construct socket address in the Addrinfo instance.
- * The 3rd element, textual host name, is also recorded but only used for Addrinfo#inspect.
+ * If the 3rd element, textual host name, is non-nil, it is also recorded but used only for Addrinfo#inspect.
*
* family is specified as an integer to specify the protocol family such as Socket::PF_INET.
* It can be a symbol or a string which is the constant name