]> Cypherpunks repositories - gostls13.git/commitdiff
making go-spec conform with 6g:
authorRobert Griesemer <gri@golang.org>
Fri, 6 Feb 2009 00:11:14 +0000 (16:11 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 6 Feb 2009 00:11:14 +0000 (16:11 -0800)
- equality of struct types requires equality of field names

DELTA=4  (0 added, 1 deleted, 3 changed)
OCL=24478
CL=24487

doc/go_spec.txt

index 2516942194e37e63fe090fbca20e88698143f0a5..65b6426369f5e21a437a2ce5c9954c1bdd1b9f20 100644 (file)
@@ -3,7 +3,7 @@ The Go Programming Language Specification (DRAFT)
 
 Robert Griesemer, Rob Pike, Ken Thompson
 
-(January 30, 2009)
+(February 5, 2009)
 
 ----
 
@@ -1647,9 +1647,8 @@ More precisely:
          have the same array length.
 
        - Two struct types are equal if they have the same number of fields in the
-         same order, corresponding fields are either both named or both anonymous,
-         and corresponding field types are equal. Note that field names
-         do not have to match.
+         same order, corresponding fields either have both the same name or
+         are both anonymous, and corresponding field types are identical.
 
        - Two pointer types are equal if they have equal base types.