mirror of
https://github.com/golang/go
synced 2024-11-22 07:34:40 -07:00
reflect: remove references to container/vector.
It's not even using vectors - the references are just examples. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4938043
This commit is contained in:
parent
95aea24990
commit
ab44a814c2
@ -6,7 +6,7 @@ package reflect_test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"container/vector"
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
@ -1322,8 +1322,8 @@ func TestFieldByName(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestImportPath(t *testing.T) {
|
func TestImportPath(t *testing.T) {
|
||||||
if path := TypeOf(vector.Vector{}).PkgPath(); path != "container/vector" {
|
if path := TypeOf(&base64.Encoding{}).Elem().PkgPath(); path != "encoding/base64" {
|
||||||
t.Errorf("TypeOf(vector.Vector{}).PkgPath() = %q, want \"container/vector\"", path)
|
t.Errorf(`TypeOf(&base64.Encoding{}).Elem().PkgPath() = %q, want "encoding/base64"`, path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ type Type interface {
|
|||||||
Name() string
|
Name() string
|
||||||
|
|
||||||
// PkgPath returns the type's package path.
|
// PkgPath returns the type's package path.
|
||||||
// The package path is a full package import path like "container/vector".
|
// The package path is a full package import path like "encoding/base64".
|
||||||
// PkgPath returns an empty string for unnamed types.
|
// PkgPath returns an empty string for unnamed types.
|
||||||
PkgPath() string
|
PkgPath() string
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ type Type interface {
|
|||||||
|
|
||||||
// String returns a string representation of the type.
|
// String returns a string representation of the type.
|
||||||
// The string representation may use shortened package names
|
// The string representation may use shortened package names
|
||||||
// (e.g., vector instead of "container/vector") and is not
|
// (e.g., base64 instead of "encoding/base64") and is not
|
||||||
// guaranteed to be unique among types. To test for equality,
|
// guaranteed to be unique among types. To test for equality,
|
||||||
// compare the Types directly.
|
// compare the Types directly.
|
||||||
String() string
|
String() string
|
||||||
|
Loading…
Reference in New Issue
Block a user