[前][次][番号順一覧][スレッド一覧]

ruby-changes:12504

From: akr <ko1@a...>
Date: Mon, 20 Jul 2009 10:57:52 +0900 (JST)
Subject: [ruby-changes:12504] Ruby:r24207 (trunk): * ext/socket/lib/socket.rb (Addrinfo#family_addrinfo): fix a typo in

akr	2009-07-20 10:57:32 +0900 (Mon, 20 Jul 2009)

  New Revision: 24207

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24207

  Log:
    * ext/socket/lib/socket.rb (Addrinfo#family_addrinfo): fix a typo in 
      error message.  patch by Nobuhiro IMAI.  [ruby-dev:38828]

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/lib/socket.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24206)
+++ ChangeLog	(revision 24207)
@@ -1,3 +1,8 @@
+Mon Jul 20 10:55:18 2009  Tanaka Akira  <akr@f...>
+
+	* 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@d...>
 
 	* rational.c (float_to_r): an improvement.
Index: ext/socket/lib/socket.rb
===================================================================
--- ext/socket/lib/socket.rb	(revision 24206)
+++ ext/socket/lib/socket.rb	(revision 24207)
@@ -15,7 +15,7 @@
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]