mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/benchmark.rb (Job::Benchmark#item): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e833cd9b3c
commit
a336e6ebd1
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Feb 11 00:18:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/benchmark.rb (Job::Benchmark#item): fix typo.
|
||||||
|
|
||||||
Sun Feb 10 21:58:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
Sun Feb 10 21:58:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* common.mk (encdb, transdb): depend on $(PREP).
|
* common.mk (encdb, transdb): depend on $(PREP).
|
||||||
|
|
|
@ -333,7 +333,7 @@ module Benchmark
|
||||||
# Registers the given label and block pair in the job list.
|
# Registers the given label and block pair in the job list.
|
||||||
#
|
#
|
||||||
def item(label = "", &blk) # :yield:
|
def item(label = "", &blk) # :yield:
|
||||||
raise ArgmentError, "no block" unless block_given?
|
raise ArgumentError, "no block" unless block_given?
|
||||||
label += ' '
|
label += ' '
|
||||||
w = label.length
|
w = label.length
|
||||||
@width = w if @width < w
|
@width = w if @width < w
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue