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 | fb8020411266ead320c582025718ffb9c77fcbcb (patch) | |
| tree | d47bc88df440202efbcd4b83549a33c3c5a8aa48 /lib/benchmark.rb | |
| parent | 2de9bf108ef949a3af13299499ef207528df62ac (diff) | |
| download | ruby-fb8020411266ead320c582025718ffb9c77fcbcb.tar.gz ruby-fb8020411266ead320c582025718ffb9c77fcbcb.tar.xz ruby-fb8020411266ead320c582025718ffb9c77fcbcb.zip | |
* lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
argument unintentionally. [ruby-talk:253676]
git-svn-id: http://svn.ruby-lang.org/repos/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 36e593518..c7c393513 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] |
