From 2955af9d8052935fa2ab11d5dcab024da98ecdde Mon Sep 17 00:00:00 2001 From: buddhamagnet Date: Tue, 13 Oct 2015 12:30:31 +0100 Subject: [PATCH] removed use of self --- about_interfaces.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/about_interfaces.go b/about_interfaces.go index cf264b2..1f34929 100644 --- a/about_interfaces.go +++ b/about_interfaces.go @@ -33,8 +33,8 @@ type human struct { milesCompleted int } -func (self *human) run() { - self.milesCompleted++ +func (h *human) run() { + h.milesCompleted++ } // another concrete type implementing the interface @@ -43,6 +43,6 @@ type program struct { executionCount int } -func (self *program) run() { - self.executionCount++ +func (p *program) run() { + p.executionCount++ }