removed use of self

This commit is contained in:
buddhamagnet
2015-10-13 12:30:31 +01:00
committed by Jason Thigpen
parent 855f03d693
commit 2955af9d80

View File

@@ -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++
}