diff options
Diffstat (limited to 'intersect.rb')
-rw-r--r-- | intersect.rb | 2 |
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 |