mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
380ea10dfa
commit
a8c748d277
7 changed files with 13 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue