diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-16 13:53:09 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-16 13:53:09 +0000 |
commit | a8c748d2773b6ce5d871360ee36f7d214ae1af11 (patch) | |
tree | 22a03c9fad82514629b36e146db6577fd969e512 /sample/philos.rb | |
parent | 380ea10dfaf431ab14b92edb7154ccd4cacd159f (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/trunk@12184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/philos.rb')
-rw-r--r-- | sample/philos.rb | 2 |
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 |