lib/aipp/pdf.rb in aipp-0.2.5 vs lib/aipp/pdf.rb in aipp-0.2.6

- old
+ new

@@ -115,9 +115,9 @@ end end end def page_for(index:) - @page_ranges.index(@page_ranges.bsearch { |i| i >= index }) + 1 + @page_ranges.index(@page_ranges.bsearch { _1 >= index }) + 1 end end end