1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:50:22 -07:00

spec: fix sentence

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5706065
This commit is contained in:
Robert Griesemer 2012-02-29 09:06:05 -08:00
parent fc79058199
commit da633714fd

View File

@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of February 28, 2012"
"Subtitle": "Version of February 29, 2012"
}-->
<!--
@ -2011,7 +2011,8 @@ BasicLit = int_lit | float_lit | imaginary_lit | char_lit | string_lit .
<h3 id="Qualified_identifiers">Qualified identifiers</h3>
<p>
A qualified identifier is a non-<a href="#Blank_identifier">blank</a> identifier qualified by a package name prefix.
A qualified identifier is a non-<a href="#Blank_identifier">blank</a> identifier
qualified by a package name prefix.
</p>
<pre class="ebnf">
@ -2019,7 +2020,8 @@ QualifiedIdent = [ PackageName "." ] identifier .
</pre>
<p>
A qualified identifier accesses an identifier in a separate package.
A qualified identifier accesses an identifier in a different package, which
must be <a href="#Import_declarations">imported</a>.
The identifier must be <a href="#Exported_identifiers">exported</a> by that
package, which means that it must begin with a Unicode upper case letter.
</p>
@ -2028,12 +2030,6 @@ package, which means that it must begin with a Unicode upper case letter.
math.Sin
</pre>
<!--
<p>
<span class="alert">TODO: Unify this section with Selectors - it's the same syntax.</span>
</p>
-->
<h3 id="Composite_literals">Composite literals</h3>
<p>
@ -4245,7 +4241,7 @@ iteration variables as in an <a href="#Assignments">assignment statement</a>.
</p>
<p>
The iteration variables may be declared by the "range" using a form of
The iteration variables may be declared by the "range" clause using a form of
<a href="#Short_variable_declarations">short variable declaration</a>
(<code>:=</code>).
In this case their types are set to the types of the respective iteration values