]> Cypherpunks repositories - gostls13.git/commitdiff
spec: clarify wording on passing slice arguments to variadic functions
authorRobert Griesemer <gri@golang.org>
Wed, 13 Mar 2019 16:48:33 +0000 (09:48 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 14 Mar 2019 00:32:43 +0000 (00:32 +0000)
Per discussion on #30769.

Fixes #30769.

Change-Id: I620dbac936de1a0b5deec03926dd11d690a918e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/167380
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Rob Pike <r@golang.org>
doc/go_spec.html

index 78ddcd56505d4dbaef0b95583b352ae2ea7a3ba7..98ef599631bb5ab16a501b5ce701a7ee7c385145 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of March 12, 2019",
+       "Subtitle": "Version of March 13, 2019",
        "Path": "/ref/spec"
 }-->
 
@@ -3484,7 +3484,7 @@ within <code>Greeting</code>, <code>who</code> will have the value
 </p>
 
 <p>
-If the final argument is assignable to a slice type <code>[]T</code>, it may be
+If the final argument is assignable to a slice type <code>[]T</code>, it is
 passed unchanged as the value for a <code>...T</code> parameter if the argument
 is followed by <code>...</code>. In this case no new slice is created.
 </p>