summaryrefslogtreecommitdiff
path: root/sample/philos.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-16 13:51:51 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-16 13:51:51 +0000
commit67e61153d335aecc6e1551f754a887bc294b3fa8 (patch)
tree2375bfc58b5bfbc82fb0b518cc01040951f019f6 /sample/philos.rb
parent5c1b68e95a84f227116f210b78a673e3e63dd174 (diff)
* sample: replace TRUE, FALSE with true, false respectively.
a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>. [ruby-dev:30713] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/philos.rb')
-rw-r--r--sample/philos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/philos.rb b/sample/philos.rb
index 119e7c36b9..5c8f43c819 100644
--- a/sample/philos.rb
+++ b/sample/philos.rb
@@ -25,7 +25,7 @@ def eat(n)
end
def philosopher(n)
- while TRUE
+ while true
think n
$forks[n].lock
if not $forks[(n+1)%N].try_lock