summaryrefslogtreecommitdiffstats
path: root/sample/philos.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-16 13:53:09 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-16 13:53:09 +0000
commit235e37bc5924a91cf3420470840097ebd78c89ac (patch)
tree22a03c9fad82514629b36e146db6577fd969e512 /sample/philos.rb
parent2f5637709f6522fae875976241cbb3d0bf85a7c7 (diff)
downloadruby-235e37bc5924a91cf3420470840097ebd78c89ac.tar.gz
ruby-235e37bc5924a91cf3420470840097ebd78c89ac.tar.xz
ruby-235e37bc5924a91cf3420470840097ebd78c89ac.zip
* sample: replace TRUE, FALSE with true, false respectively.
a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>. [ruby-dev:30713] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12184 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 119e7c36b..5c8f43c81 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