Formatting fixes
This commit is contained in:
parent
7052a77836
commit
f2c200bd7b
@ -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());
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user