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