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

parenthesis.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2013-02-18 07:31:17 +00:00
Родитель 7d63004fce
Коммит a16c76f7c5
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Mon Feb 18 16:30:18 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/ipaddr.rb (IPAddr#in6_addr): Fix a typo with the closing
parenthesis.
Mon Feb 18 12:32:24 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/ipaddr.rb (IPAddr#in6_addr): Fix the parser so that it can

Просмотреть файл

@ -549,7 +549,7 @@ class IPAddr
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