mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
reflect: doc fixes for obsolete types.
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4802061
This commit is contained in:
parent
2fc962697a
commit
fc1cf58809
3 changed files with 9 additions and 9 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue