This commit is contained in:
Mark McGranaghan 2012-10-24 09:51:39 -04:00
parent 3babe35fcd
commit 76804c3097

View File

@ -31,7 +31,7 @@ func main() {
fmt.Println(s.name)
// You can also use dots with struct pointers - the
// pointer will be automatically dereferenced.
// pointers are automatically dereferenced.
sp := &s
fmt.Println(sp.age)