Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
da633714
Commit
da633714
authored
Feb 29, 2012
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: fix sentence
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5706065
parent
fc790581
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
doc/go_spec.html
doc/go_spec.html
+6
-10
No files found.
doc/go_spec.html
View file @
da633714
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of February 2
8
, 2012"
"Subtitle": "Version of February 2
9
, 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment