summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-18 07:31:17 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-18 07:31:17 +0000
commita16c76f7c5dbab7d630f87d0327be79b91725d6b (patch)
tree09cd795e0f02cba0f4daf19bc5f00be104ad790b /lib
parent7d63004fce9e05af0f1c91f991888e6bc7814ee2 (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/ipaddr.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb
index 5a6af39e2d..13016fcbba 100644
--- a/lib/ipaddr.rb
+++ b/lib/ipaddr.rb
@@ -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