diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-31 08:26:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-31 08:26:31 +0000 |
commit | 44475bb20874b908160b2a9e6d1dda7fb0c10e88 (patch) | |
tree | d47bc88df440202efbcd4b83549a33c3c5a8aa48 /lib/benchmark.rb | |
parent | 284565992f487937080230d3ae2b5afae4c8ac3f (diff) | |
download | ruby-44475bb20874b908160b2a9e6d1dda7fb0c10e88.tar.gz |
* lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
argument unintentionally. [ruby-talk:253676]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/benchmark.rb')
-rw-r--r-- | lib/benchmark.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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] |