removed use of self
This commit is contained in:
committed by
Jason Thigpen
parent
855f03d693
commit
2955af9d80
@@ -33,8 +33,8 @@ type human struct {
|
|||||||
milesCompleted int
|
milesCompleted int
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *human) run() {
|
func (h *human) run() {
|
||||||
self.milesCompleted++
|
h.milesCompleted++
|
||||||
}
|
}
|
||||||
|
|
||||||
// another concrete type implementing the interface
|
// another concrete type implementing the interface
|
||||||
@@ -43,6 +43,6 @@ type program struct {
|
|||||||
executionCount int
|
executionCount int
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *program) run() {
|
func (p *program) run() {
|
||||||
self.executionCount++
|
p.executionCount++
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user