From a17cb167ea5e0f0690a94d8f39b821a43aebd456 Mon Sep 17 00:00:00 2001 From: kou Date: Mon, 15 Oct 2012 12:53:12 +0000 Subject: * benchmark/: add missing spaces around assignment operators (= and +=) for consistency. Approved by ko1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/other-lang/fact.rb | 4 ++-- benchmark/other-lang/loop.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'benchmark/other-lang') diff --git a/benchmark/other-lang/fact.rb b/benchmark/other-lang/fact.rb index 7e97b22b39..6cedc752cd 100644 --- a/benchmark/other-lang/fact.rb +++ b/benchmark/other-lang/fact.rb @@ -6,8 +6,8 @@ def fact(n) end end -i=0 +i = 0 while i<10000 - i+=1 + i += 1 fact(100) end diff --git a/benchmark/other-lang/loop.rb b/benchmark/other-lang/loop.rb index d43cef61f3..b367b9dbf3 100644 --- a/benchmark/other-lang/loop.rb +++ b/benchmark/other-lang/loop.rb @@ -1,4 +1,4 @@ -i=0 +i = 0 while i<30000000 - i+=1 + i += 1 end -- cgit v1.2.3