]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: Comment fix
authorkargakis <mkargaki@redhat.com>
Tue, 27 Oct 2015 15:25:08 +0000 (16:25 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 27 Oct 2015 15:46:29 +0000 (15:46 +0000)
Change-Id: I86cdd5c1d7b6f76d3474d180e75ea0c732241080
Reviewed-on: https://go-review.googlesource.com/16309
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/reflect/type.go

index aa56fcbe9554e5e6cd048cc88a5c21aa6b6b7046..003c610cb14c2fc2baf561c3b7b1f215879d52cc 100644 (file)
@@ -735,10 +735,10 @@ func (t *interfaceType) MethodByName(name string) (m Method, ok bool) {
 // A StructField describes a single field in a struct.
 type StructField struct {
        // Name is the field name.
+       Name string
        // PkgPath is the package path that qualifies a lower case (unexported)
        // field name.  It is empty for upper case (exported) field names.
        // See https://golang.org/ref/spec#Uniqueness_of_identifiers
-       Name    string
        PkgPath string
 
        Type      Type      // field type