]> Cypherpunks repositories - gostls13.git/commitdiff
spec: fix copy to return "number of elements copied", not "number
authorNigel Tao <nigeltao@golang.org>
Sun, 15 May 2011 23:04:37 +0000 (16:04 -0700)
committerNigel Tao <nigeltao@golang.org>
Sun, 15 May 2011 23:04:37 +0000 (16:04 -0700)
of arguments copied".

R=gri, r
CC=golang-dev
https://golang.org/cl/4550041

doc/go_spec.html

index 11a31cb0c70a3e6b429f6ed3b0d4ffb7d7f8f1be..5f8b5e6ba9b37e60149872aa1545ecf4eca203ee 100644 (file)
@@ -1,5 +1,5 @@
 <!-- title The Go Programming Language Specification -->
-<!-- subtitle Version of May 13, 2011 -->
+<!-- subtitle Version of May 15, 2011 -->
 
 <!--
 TODO
@@ -4611,7 +4611,7 @@ a source <code>src</code> to a destination <code>dst</code> and returns the
 number of elements copied. Source and destination may overlap.
 Both arguments must have <a href="#Type_identity">identical</a> element type <code>T</code> and must be
 <a href="#Assignability">assignable</a> to a slice of type <code>[]T</code>.
-The number of arguments copied is the minimum of
+The number of elements copied is the minimum of
 <code>len(src)</code> and <code>len(dst)</code>.
 As a special case, <code>copy</code> also accepts a destination argument assignable
 to type <code>[]byte</code> with a source argument of a string type.