mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
bb45f1b2b8
commit
5453433223
2 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue