]> Cypherpunks repositories - gostls13.git/commitdiff
effective_go: clarified small comment
authorAndrew Gerrand <adg@golang.org>
Mon, 22 Feb 2010 22:51:22 +0000 (14:51 -0800)
committerAndrew Gerrand <adg@golang.org>
Mon, 22 Feb 2010 22:51:22 +0000 (14:51 -0800)
R=rsc, cw
CC=golang-dev
https://golang.org/cl/217085

doc/effective_go.html

index ba36a43fe21755c924e78df309a787924333615d..684f108de952e63bc699a0574d8b93cf35b06c95 100644 (file)
@@ -943,7 +943,7 @@ These examples illustrate the difference between <code>new()</code> and
 
 <pre>
 var p *[]int = new([]int)       // allocates slice structure; *p == nil; rarely useful
-var v  []int = make([]int, 100) // v now refers to a new array of 100 ints
+var v  []int = make([]int, 100) // the slice v now refers to a new array of 100 ints
 
 // Unnecessarily complex:
 var p *[]int = new([]int)