summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-20 01:57:32 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-20 01:57:32 +0000
commit5453433223fea3fbbae2399c4c5ee66f843a238a (patch)
tree8c9b47343cac08916c32cd266b1d1b9cf2e8728d
parentbb45f1b2b8a21a8e6de705c9a68724a49563c66c (diff)
* ext/socket/lib/socket.rb (Addrinfo#family_addrinfo): fix a typo in
error message. patch by Nobuhiro IMAI. [ruby-dev:38828] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/socket/lib/socket.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b763497..3424017 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 20 10:55:18 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Addrinfo#family_addrinfo): fix a typo in
+ error message. patch by Nobuhiro IMAI. [ruby-dev:38828]
+
Sun Jul 19 22:22:54 2009 Tadayoshi Funaba <tadf@dotrb.org>
* rational.c (float_to_r): an improvement.
diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb
index 1f155e7..b3b31d8 100644
--- a/ext/socket/lib/socket.rb
+++ b/ext/socket/lib/socket.rb
@@ -15,7 +15,7 @@ class Addrinfo
if args.empty?
raise ArgumentError, "no address specified"
elsif Addrinfo === args.first
- raise ArgumentError, "too man argument" if args.length != 1
+ raise ArgumentError, "too many arguments" if args.length != 1
elsif self.ip?
raise ArgumentError, "IP address needs host and port but #{args.length} arguments given" if args.length != 2
host, port = args