From 1024b25d0c044484ed9288ac8f78bd9f5ebb5287 Mon Sep 17 00:00:00 2001
From: Robert Griesemer
Date: Wed, 13 Mar 2019 09:48:33 -0700
Subject: [PATCH] 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
---
doc/go_spec.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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.
--
2.48.1