diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/benchmark.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu May 31 17:27:53 2007 Nobuyoshi Nakada <[email protected]> + + * lib/benchmark.rb (Benchmark::Job::item): avoid modifying the + argument unintentionally. [ruby-talk:253676] + Thu May 31 02:12:32 2007 Masatoshi SEKI <[email protected]> * lib/rinda/tuplespace.rb (Rinda::TupleBag): create index on tuple bag diff --git a/lib/benchmark.rb b/lib/benchmark.rb index 36e593518f..c7c3935131 100644 --- a/lib/benchmark.rb +++ b/lib/benchmark.rb @@ -331,7 +331,7 @@ module Benchmark # def item(label = "", &blk) # :yield: raise ArgmentError, "no block" unless block_given? - label.concat ' ' + label += ' ' w = label.length @width = w if @width < w @list.push [label, blk] |