From 235e37bc5924a91cf3420470840097ebd78c89ac Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 16 Apr 2007 13:53:09 +0000 Subject: * sample: replace TRUE, FALSE with true, false respectively. a patch from Kazuhiro NISHIYAMA . [ruby-dev:30713] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/philos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample/philos.rb') 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 -- cgit