]> Cypherpunks repositories - gostls13.git/commitdiff
Use // to start comment instead of #.
authorRobert Griesemer <gri@golang.org>
Sun, 15 Nov 2009 19:33:20 +0000 (11:33 -0800)
committerRobert Griesemer <gri@golang.org>
Sun, 15 Nov 2009 19:33:20 +0000 (11:33 -0800)
Fixes #189.

R=r
CC=rsc
https://golang.org/cl/155055

doc/go_spec.html

index 9abebfbe73f30d09a4032d293308cb5447bd1aac..c533f0af76d8a3680c85dea70ca2ba0990f3013a 100644 (file)
@@ -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>