]> Cypherpunks repositories - gostls13.git/commitdiff
missing ';' renders the code snippet incorrectly on website
authorAndrey Mirtchovski <mirtchovski@gmail.com>
Tue, 9 Mar 2010 22:21:34 +0000 (14:21 -0800)
committerRob Pike <r@golang.org>
Tue, 9 Mar 2010 22:21:34 +0000 (14:21 -0800)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/367041

doc/go_for_cpp_programmers.html

index 6786b7cca6b5e77fe091f7768a7c2505f42048e3..a2291715ce73dbc2938a746b36cd407122289b9e 100644 (file)
@@ -374,7 +374,7 @@ capacity of the new slice is simply the capacity of <code>a</code> minus
 <code>I</code>.  The capacity
 of an array is the length of the array.  You may also assign an array pointer
 to a variable of slice type; given <code>var s []int; var a[10] int</code>,
-the assignment <code>s = &ampa</code> is equivalent to
+the assignment <code>s = &amp;a</code> is equivalent to
 <code>s = a[0:len(a)]</code>.
 
 <p>