summaryrefslogtreecommitdiff
path: root/ext
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 /ext
parentbb45f1b2b8a21a8e6de705c9a68724a49563c66c (diff)
downloadruby-5453433223fea3fbbae2399c4c5ee66f843a238a.tar.gz
* 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
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/lib/socket.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb
index 1f155e7813..b3b31d87f7 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