Merge pull request #30 from mifaly/patch-1

Update ch5-07.md
This commit is contained in:
Xargin 2017-11-30 12:57:44 +08:00 committed by GitHub
commit 9ca3fd63f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ linenum, name := 12, "count"
errorf(linenum, "undefined: %s", name) // "Line 12: undefined: count"
```
interfac{}表示函数的最后一个参数可以接收任意类型我们会在第7章详细介绍。
interface{}表示函数的最后一个参数可以接收任意类型我们会在第7章详细介绍。
**练习5.15** 编写类似sum的可变参数函数max和min。考虑不传参时max和min该如何处理再编写至少接收1个参数的版本。