Update 10.7.md (#383)

练习10.12  :
t := &{7, -2.35, "abc\tdef"}  --->  t := &T{7, -2.35, "abc\tdef"}
This commit is contained in:
wbzqe
2017-07-14 22:04:33 -05:00
committed by 无闻
parent 0533a4fc31
commit 05c3e3e4ff

View File

@@ -68,7 +68,7 @@ type T struct {
}
```
`t`: `t := &{7, -2.35, "abc\tdef"}`。给 T 定义 `String()`,使得 `fmt.Printf("%v\n", t)` 输出:`7 / -2.350000 / "abc\tdef"`
`t`: `t := &T{7, -2.35, "abc\tdef"}`。给 T 定义 `String()`,使得 `fmt.Printf("%v\n", t)` 输出:`7 / -2.350000 / "abc\tdef"`
**练习 10.13** celsius.go