From 67e61153d335aecc6e1551f754a887bc294b3fa8 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 16 Apr 2007 13:51:51 +0000 Subject: * sample: replace TRUE, FALSE with true, false respectively. a patch from Kazuhiro NISHIYAMA . [ruby-dev:30713] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12183 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 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 -- cgit v1.2.3