From 05c3e3e4ffee8d3e0e3fbdbe2befe0d190d8017c Mon Sep 17 00:00:00 2001 From: wbzqe <870499642@qq.com> Date: Fri, 14 Jul 2017 22:04:33 -0500 Subject: [PATCH] Update 10.7.md (#383) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 练习10.12 : t := &{7, -2.35, "abc\tdef"} ---> t := &T{7, -2.35, "abc\tdef"} --- eBook/10.7.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBook/10.7.md b/eBook/10.7.md index 19889e0..aefba26 100644 --- a/eBook/10.7.md +++ b/eBook/10.7.md @@ -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