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/branches/ruby_1_8@15425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fba0a9e7e9
commit
0819c287f2
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Feb 11 00:22:55 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/benchmark.rb (Job::Benchmark#item): fix typo.
|
||||
|
||||
Sat Feb 9 23:22:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/bigdecimal/extconf.rb: simplified the condition.
|
||||
|
|
|
@ -333,7 +333,7 @@ module Benchmark
|
|||
# Registers the given label and block pair in the job list.
|
||||
#
|
||||
def item(label = "", &blk) # :yield:
|
||||
raise ArgmentError, "no block" unless block_given?
|
||||
raise ArgumentError, "no block" unless block_given?
|
||||
label += ' '
|
||||
w = label.length
|
||||
@width = w if @width < w
|
||||
|
|
Loading…
Add table
Reference in a new issue