1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
parent 7d63004fce
commit a16c76f7c5
2 changed files with 6 additions and 1 deletions

View file

@ -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