From 1a550cbf5a29f514d0db64884630f6a390871ec6 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 26 Feb 2017 00:23:19 +0100 Subject: Rename Grab --- philo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'philo.go') diff --git a/philo.go b/philo.go index 930b23f..7007a7a 100644 --- a/philo.go +++ b/philo.go @@ -37,8 +37,8 @@ func (p Philo) Arrive() stateFn { func (p Philo) Hungry() stateFn { p.Print("is hungry") - p.Left.Grab() - if ok := p.Right.TryGrab(p.TimeOut); ok { + p.Left.Get() + if ok := p.Right.TryGet(p.TimeOut); ok { return p.Eat } p.Left.Put() -- cgit v1.2.3