aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ipaddr.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-20 03:30:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-20 03:30:59 +0000
commitc9dd4823d98141754842c0b356b141d94ba36604 (patch)
treef2b25b637c22571cfc5c1eed76ee62b19520b47f /lib/ipaddr.rb
parent772cc7a4f212fa3249f88c98b19645beb7f3d199 (diff)
downloadruby-c9dd4823d98141754842c0b356b141d94ba36604.tar.gz
* lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/ipaddr.rb')
-rw-r--r--lib/ipaddr.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb
index 282ca09a8f..1fa0ed610f 100644
--- a/lib/ipaddr.rb
+++ b/lib/ipaddr.rb
@@ -444,7 +444,7 @@ class IPAddr
# automatically from a specified string, you can specify one
# explicitly by the optional second argument.
#
- # Otherwise an IP addess is generated from a packed in_addr value
+ # Otherwise an IP address is generated from a packed in_addr value
# and an address family.
#
# The IPAddr class defines many methods and operators, and some of
@@ -472,7 +472,7 @@ class IPAddr
#Socket.getaddrinfo(left, nil, Socket::AF_INET6, Socket::SOCK_STREAM, nil,
# Socket::AI_NUMERICHOST)
begin
- IPSocket.getaddress(prefix) # test if address is vaild
+ IPSocket.getaddress(prefix) # test if address is valid
rescue
raise ArgumentError, "invalid address"
end