From e93a146c1ef9af9ebbc9f5a7aff5eac0e7650853 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 5 May 2014 19:31:16 +0200 Subject: proper cky+ --- intersect.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3