summaryrefslogtreecommitdiff
path: root/intersect.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-05-05 19:31:16 +0200
committerPatrick Simianer <p@simianer.de>2014-05-05 19:31:16 +0200
commite93a146c1ef9af9ebbc9f5a7aff5eac0e7650853 (patch)
tree942cb6cd8c709afacc021bd5828e0c706a6fb4c2 /intersect.rb
parent6f8e0a8a93f6bded52d818f8c510e40c2e0700d6 (diff)
proper cky+
Diffstat (limited to 'intersect.rb')
-rw-r--r--intersect.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/intersect.rb b/intersect.rb
index 23d8fdb..8dcfc76 100644
--- a/intersect.rb
+++ b/intersect.rb
@@ -151,7 +151,7 @@ end
def visit n
n.times { |i|
0.upto(n-(i+2)) { |j|
- yield j, j+i+2 if block_given?
+ yield j, j+i+1 if block_given?
}
}
end