зеркало из https://github.com/github/ruby.git
* lib/benchmark.rb (Benchmark::bm): get rid of warning.
[ruby-talk:69124] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0b984f51a1
Коммит
4347eb8a7f
|
@ -1,3 +1,8 @@
|
|||
Fri Apr 11 10:51:08 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* lib/benchmark.rb (Benchmark::bm): get rid of warning.
|
||||
[ruby-talk:69124]
|
||||
|
||||
Fri Apr 11 02:41:35 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* io.c (set_stdin): assigned value must respond to "read" and
|
||||
|
|
|
@ -451,7 +451,7 @@ module Benchmark
|
|||
end
|
||||
|
||||
def bm(label_width = 0, *labels)
|
||||
benchmark(" "*label_width + CAPTION, label_width, FMTSTR, *labels){|*x|yield *x}
|
||||
benchmark(" "*label_width + CAPTION, label_width, FMTSTR, *labels){|*x|yield(*x)}
|
||||
end
|
||||
|
||||
def bmbm(width = 0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче