summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-31 08:26:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-31 08:26:31 +0000
commit5872a58026fdf2e031b9ee8619c27db9246f79f0 (patch)
tree66d31bad92c562c892dc20237a042515998a88bd /lib
parent49e8b750f72d0fec320fbcbd5de5cafec2dcaa9a (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')
-rw-r--r--lib/benchmark.rb2
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]