Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
c423e95d
Commit
c423e95d
authored
Sep 02, 2010
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go spec clarification: arrays must be addressable to be sliceable
R=rsc CC=golang-dev, r
https://golang.org/cl/2141041
parent
b05679cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
go_spec.html
doc/go_spec.html
+3
-3
No files found.
doc/go_spec.html
View file @
c423e95d
<!-- title The Go Programming Language Specification -->
<!-- title The Go Programming Language Specification -->
<!-- subtitle Version of Sep
1
, 2010 -->
<!-- subtitle Version of Sep
2
, 2010 -->
<!--
<!--
TODO
TODO
...
@@ -2464,8 +2464,8 @@ for slices, the upper bound is the capacity rather than the length.
...
@@ -2464,8 +2464,8 @@ for slices, the upper bound is the capacity rather than the length.
<p>
<p>
If the sliced operand is a string or slice, the result of the slice operation
If the sliced operand is a string or slice, the result of the slice operation
is a string or slice of the same type.
is a string or slice of the same type.
If the sliced operand is an array,
the result of the slice operation is a slice
If the sliced operand is an array,
it must be
<a
href=
"#Address_operators"
>
addressable
</a>
with the same element type as the array.
and the result of the slice operation is a slice
with the same element type as the array.
</p>
</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