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

ruby-changes:27248

From: knu <ko1@a...>
Date: Mon, 18 Feb 2013 16:31:27 +0900 (JST)
Subject: [ruby-changes:27248] knu:r39300 (trunk): * lib/ipaddr.rb (IPAddr#in6_addr): Fix a typo with the closing

knu	2013-02-18 16:31:17 +0900 (Mon, 18 Feb 2013)

  New Revision: 39300

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

  Log:
    * lib/ipaddr.rb (IPAddr#in6_addr): Fix a typo with the closing
      parenthesis.

  Modified files:
    trunk/ChangeLog
    trunk/lib/ipaddr.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39299)
+++ ChangeLog	(revision 39300)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Feb 18 16:30:18 2013  Akinori MUSHA  <knu@i...>
+
+	* lib/ipaddr.rb (IPAddr#in6_addr): Fix a typo with the closing
+	  parenthesis.
+
 Mon Feb 18 12:32:24 2013  Akinori MUSHA  <knu@i...>
 
 	* lib/ipaddr.rb (IPAddr#in6_addr): Fix the parser so that it can
Index: lib/ipaddr.rb
===================================================================
--- lib/ipaddr.rb	(revision 39299)
+++ lib/ipaddr.rb	(revision 39300)
@@ -549,7 +549,7 @@ class IPAddr https://github.com/ruby/ruby/blob/trunk/lib/ipaddr.rb#L549
         left = $1
         right = $3 + '0:0'
       else
-        left.count(':') <= ($1.empty? || $2.empty?) ? 8 : 7 or
+        left.count(':') <= ($1.empty? || $2.empty? ? 8 : 7) or
           raise InvalidAddressError, "invalid address"
         left = $1
         right = $2

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

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