From: Robert Griesemer Date: Wed, 13 Mar 2019 16:48:33 +0000 (-0700) Subject: spec: clarify wording on passing slice arguments to variadic functions X-Git-Tag: go1.13beta1~1045 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1024b25d0c044484ed9288ac8f78bd9f5ebb5287;p=gostls13.git spec: clarify wording on passing slice arguments to variadic functions Per discussion on #30769. Fixes #30769. Change-Id: I620dbac936de1a0b5deec03926dd11d690a918e5 Reviewed-on: https://go-review.googlesource.com/c/go/+/167380 Reviewed-by: Brad Fitzpatrick Reviewed-by: Matthew Dempsky Reviewed-by: Rob Pike --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 78ddcd5650..98ef599631 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -3484,7 +3484,7 @@ within Greeting, who will have the value

-If the final argument is assignable to a slice type []T, it may be +If the final argument is assignable to a slice type []T, it is passed unchanged as the value for a ...T parameter if the argument is followed by .... In this case no new slice is created.