]> Cypherpunks repositories - gostls13.git/commitdiff
spec: slight wording change to remove a formal contradiction
authorRobert Griesemer <gri@golang.org>
Wed, 31 Oct 2012 22:07:25 +0000 (15:07 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 31 Oct 2012 22:07:25 +0000 (15:07 -0700)
Fixes #4324.

R=r
CC=golang-dev
https://golang.org/cl/6822062

doc/go_spec.html

index bd3c75f515730071b985ae4e70991e529582ee6b..0f3c5ed312829e98be942364c1f131f4eb164962 100644 (file)
@@ -2128,18 +2128,18 @@ For struct literals the following rules apply:
 <ul>
        <li>A key must be a field name declared in the LiteralType.
        </li>
-       <li>A literal that does not contain any keys must
+       <li>An element list that does not contain any keys must
            list an element for each struct field in the
            order in which the fields are declared.
        </li>
        <li>If any element has a key, every element must have a key.
        </li>
-       <li>A literal that contains keys does not need to
+       <li>An element list that contains keys does not need to
            have an element for each struct field. Omitted fields
            get the zero value for that field.
        </li>
        <li>A literal may omit the element list; such a literal evaluates
-               to the zero value for its type.
+           to the zero value for its type.
        </li>
        <li>It is an error to specify an element for a non-exported
            field of a struct belonging to a different package.