Formatting fixes

This commit is contained in:
Jacob Windle 2017-12-29 11:44:09 -05:00
parent 7052a77836
commit f2c200bd7b

View File

@ -61,7 +61,7 @@ import "fmt"
type Person struct { name, sign, disposition string }
func (p Person) GetDisposition() string {
return p.disposition;
return p.disposition;
}
func (p *Person) AlterDisposition (weather string) {
@ -76,10 +76,10 @@ func (p *Person) AlterDisposition (weather string) {
}
func main() {
var p Person = Person{ "Jake", "Sagittarius", "happy" }
fmt.Println(p.GetDisposition());
p.AlterDisposition("rainy")
fmt.Println(p.GetDisposition());
var p Person = Person{ "Jake", "Sagittarius", "happy" }
fmt.Println(p.GetDisposition());
p.AlterDisposition("rainy")
fmt.Println(p.GetDisposition());
}
```