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
13ad5d40
Commit
13ad5d40
authored
Nov 15, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use // to start comment instead of #.
Fixes #189. R=r CC=rsc
https://golang.org/cl/155055
parent
b18bee94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
go_spec.html
doc/go_spec.html
+4
-4
No files found.
doc/go_spec.html
View file @
13ad5d40
...
...
@@ -4190,10 +4190,10 @@ buffered channels:
</p>
<pre>
s := make([]int, 10, 100);
#
slice with len(s) == 10, cap(s) == 100
s := make([]int, 10);
#
slice with len(s) == cap(s) == 10
c := make(chan int, 10);
#
channel with a buffer size of 10
m := make(map[string] int, 100);
#
map with initial space for 100 elements
s := make([]int, 10, 100);
//
slice with len(s) == 10, cap(s) == 100
s := make([]int, 10);
//
slice with len(s) == cap(s) == 10
c := make(chan int, 10);
//
channel with a buffer size of 10
m := make(map[string] int, 100);
//
map with initial space for 100 elements
</pre>
...
...
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