mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
49e8b750f7
commit
5872a58026
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu May 31 17:27:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
|
||||
argument unintentionally. [ruby-talk:253676]
|
||||
|
||||
Thu May 31 02:12:32 2007 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* lib/rinda/tuplespace.rb (Rinda::TupleBag): create index on tuple bag
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue