diff options
author | Rob Pike <r@golang.org> | 2011-08-22 13:22:42 +1000 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2011-08-22 13:22:42 +1000 |
commit | 31d95bc56ad42f7ebc0cf97bf68f9e6f1e9daced (patch) | |
tree | 317ff7370a41e2721f85166525cba5f50c0c1255 /src/pkg/reflect | |
parent | 056b7c211f2e6cd264c041945b535ee1c03dbf82 (diff) | |
download | go-31d95bc56ad42f7ebc0cf97bf68f9e6f1e9daced.tar.gz |
reflect: remove references to container/vector.
It's not even using vectors - the references are just examples.
R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/4938043
Diffstat (limited to 'src/pkg/reflect')
-rw-r--r-- | src/pkg/reflect/all_test.go | 6 | ||||
-rw-r--r-- | src/pkg/reflect/type.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pkg/reflect/all_test.go b/src/pkg/reflect/all_test.go index 257278e8f..d63e986fd 100644 --- a/src/pkg/reflect/all_test.go +++ b/src/pkg/reflect/all_test.go @@ -6,7 +6,7 @@ package reflect_test import ( "bytes" - "container/vector" + "encoding/base64" "fmt" "io" "os" @@ -1322,8 +1322,8 @@ func TestFieldByName(t *testing.T) { } func TestImportPath(t *testing.T) { - if path := TypeOf(vector.Vector{}).PkgPath(); path != "container/vector" { - t.Errorf("TypeOf(vector.Vector{}).PkgPath() = %q, want \"container/vector\"", path) + if path := TypeOf(&base64.Encoding{}).Elem().PkgPath(); path != "encoding/base64" { + t.Errorf(`TypeOf(&base64.Encoding{}).Elem().PkgPath() = %q, want "encoding/base64"`, path) } } diff --git a/src/pkg/reflect/type.go b/src/pkg/reflect/type.go index 4c377e1fe..c9a9edc73 100644 --- a/src/pkg/reflect/type.go +++ b/src/pkg/reflect/type.go @@ -65,7 +65,7 @@ type Type interface { Name() string // 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() string @@ -75,7 +75,7 @@ type Type interface { // String returns a string representation of the type. // 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, // compare the Types directly. String() string |