From: Andrew Gerrand Date: Mon, 22 Feb 2010 22:51:22 +0000 (-0800) Subject: effective_go: clarified small comment X-Git-Tag: weekly.2010-02-23~13 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=766c3ff735807dcfb9099ae38c643e0c9971203e;p=gostls13.git effective_go: clarified small comment R=rsc, cw CC=golang-dev https://golang.org/cl/217085 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index ba36a43fe2..684f108de9 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -943,7 +943,7 @@ These examples illustrate the difference between new() and
 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)