Skip to content

Commit

Permalink
Update 10.7.md (unknwon#383)
Browse files Browse the repository at this point in the history
练习10.12  :
t := &{7, -2.35, "abc\tdef"}  --->  t := &T{7, -2.35, "abc\tdef"}
  • Loading branch information
wbzqe authored and unknwon committed Jul 15, 2017
1 parent 0533a4f commit 05c3e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eBook/10.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 05c3e3e

Please sign in to comment.