[Groonga-commit] droonga/fluent-plugin-droonga at 972ad09 [master] Use "..." range syntax to exclude the last value

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Nov 28 10:09:01 JST 2013


Kouhei Sutou	2013-11-28 10:09:01 +0900 (Thu, 28 Nov 2013)

  New Revision: 972ad09f071c545be375bfb449e50e61cbb4f23f
  https://github.com/droonga/fluent-plugin-droonga/commit/972ad09f071c545be375bfb449e50e61cbb4f23f

  Message:
    Use "..." range syntax to exclude the last value
    
    X..Y-1 ->
    X...Y

  Modified files:
    lib/droonga/plugin/collector/basic.rb

  Modified: lib/droonga/plugin/collector/basic.rb (+1 -1)
===================================================================
--- lib/droonga/plugin/collector/basic.rb    2013-11-27 22:50:40 +0900 (12a4647)
+++ lib/droonga/plugin/collector/basic.rb    2013-11-28 10:09:01 +0900 (098b8e3)
@@ -55,7 +55,7 @@ module Droonga
             reduced_values = reduced_values[deal["offset"]..-1]
           end
           if deal["limit"] && deal["limit"] != UNLIMITED
-            reduced_values = reduced_values[0..deal["limit"]-1]
+            reduced_values = reduced_values[0...deal["limit"]]
           end
         end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index