]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: remove references to container/vector.
authorRob Pike <r@golang.org>
Mon, 22 Aug 2011 03:22:42 +0000 (13:22 +1000)
committerRob Pike <r@golang.org>
Mon, 22 Aug 2011 03:22:42 +0000 (13:22 +1000)
It's not even using vectors - the references are just examples.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4938043

src/pkg/reflect/all_test.go
src/pkg/reflect/type.go

index 257278e8f4fe17db86452e9a98b59c6e5fdb77ff..d63e986fde58939674a4c8b43918e5031108defa 100644 (file)
@@ -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)
        }
 }
 
index 4c377e1fe10f965a335ddc6e51c82a38e09f8d05..c9a9edc73de70f9e018de2f3baf1c2f6a44214df 100644 (file)
@@ -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