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 | 5872a58026fdf2e031b9ee8619c27db9246f79f0 (patch) | |
tree | 66d31bad92c562c892dc20237a042515998a88bd /lib/benchmark.rb | |
parent | 49e8b750f72d0fec320fbcbd5de5cafec2dcaa9a (diff) |
* lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
argument unintentionally. [ruby-talk:253676]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@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] |