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
4dfe976d
Commit
4dfe976d
authored
Dec 02, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: avoid slice of array literal
R=gri CC=golang-dev
https://golang.org/cl/5451078
parent
bd9dc3d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
doc/go_spec.html
doc/go_spec.html
+4
-3
No files found.
doc/go_spec.html
View file @
4dfe976d
<!-- title The Go Programming Language Specification -->
<!-- subtitle Version of
November 2
2, 2011 -->
<!-- subtitle Version of
December
2, 2011 -->
<!--
TODO
...
...
@@ -2106,11 +2106,12 @@ element index plus one. A slice literal has the form
</pre>
<p>
and is a shortcut for a slice operation applied to an array
literal
:
and is a shortcut for a slice operation applied to an array:
</p>
<pre>
[n]T{x1, x2, … xn}[0 : n]
tmp := [n]T{x1, x2, … xn}
tmp[0 : n]
</pre>
<p>
...
...
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