reflect: doc fixes for obsolete types.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4802061
This commit is contained in:
David Symonds 2011-07-27 13:29:44 +10:00
parent 2fc962697a
commit fc1cf58809
3 changed files with 9 additions and 9 deletions

View file

@ -1327,8 +1327,8 @@ func TestImportPath(t *testing.T) {
}
}
func TestDotDotDot(t *testing.T) {
// Test example from FuncType.DotDotDot documentation.
func TestVariadic(t *testing.T) {
// Test example from Type documentation.
var f func(x int, y ...float64)
typ := TypeOf(f)
if typ.NumIn() == 2 && typ.In(0) == TypeOf(int(0)) {