diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-15 12:53:12 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-15 12:53:12 +0000 |
commit | a17cb167ea5e0f0690a94d8f39b821a43aebd456 (patch) | |
tree | b7c28180ea5d7d5bc428269e0eff8497756dc78a /benchmark/other-lang | |
parent | 2780e752edac13439b14033b653588a511b8e111 (diff) |
* 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
Diffstat (limited to 'benchmark/other-lang')
-rw-r--r-- | benchmark/other-lang/fact.rb | 4 | ||||
-rw-r--r-- | benchmark/other-lang/loop.rb | 4 |
2 files changed, 4 insertions, 4 deletions
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 |