aboutsummaryrefslogtreecommitdiff
path: root/doc/go_spec.html
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2019-03-13 09:48:33 -0700
committerRobert Griesemer <gri@golang.org>2019-03-14 00:32:43 +0000
commit1024b25d0c044484ed9288ac8f78bd9f5ebb5287 (patch)
tree32f78423fdb0c503a6e92a7e241fe1fa37cd8eb7 /doc/go_spec.html
parentee1c76dccdfb2a40fb21a7875cccd8fc6d76d7ad (diff)
downloadgo-1024b25d0c044484ed9288ac8f78bd9f5ebb5287.tar.gz
go-1024b25d0c044484ed9288ac8f78bd9f5ebb5287.zip
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 <bradfitz@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r--doc/go_spec.html4
1 files 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 @@
<!--{
"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>