ch12: fix code path

This commit is contained in:
chai2010
2016-01-20 22:56:40 +08:00
parent 617ef87432
commit 0c1b9762d9
7 changed files with 7 additions and 32 deletions

View File

@@ -2,9 +2,8 @@
我們的最後一個例子是使用reflect.Type來打印任意值的類型和枚舉它的方法
<u><i>gopl.io/ch12/methods</i></u>
```Go
gopl.io/ch12/methods
// Print prints the method set of the value x.
func Print(x interface{}) {
v := reflect.ValueOf(x)
@@ -39,6 +38,3 @@ methods.Print(new(strings.Replacer))
// func (*strings.Replacer) Replace(string) string
// func (*strings.Replacer) WriteString(io.Writer, string) (int, error)
````