mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
spec: improve sentence structure for passing a slice
Change-Id: I453d06da2f596eb0b99905aec46a05547d73c62c Reviewed-on: https://go-review.googlesource.com/c/go/+/290872 Trust: Emmanuel Odeke <emmanuel@orijtech.com> Trust: Robert Griesemer <gri@golang.org> Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
6ba4a300d8
commit
084b07d6f6
1 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Version of Feb 19, 2021",
|
"Subtitle": "Version of Feb 24, 2021",
|
||||||
"Path": "/ref/spec"
|
"Path": "/ref/spec"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
|
|
@ -3532,9 +3532,9 @@ within <code>Greeting</code>, <code>who</code> will have the value
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
If the final argument is assignable to a slice type <code>[]T</code>, it is
|
If the final argument is assignable to a slice type <code>[]T</code> and
|
||||||
passed unchanged as the value for a <code>...T</code> parameter if the argument
|
is followed by <code>...</code>, it is passed unchanged as the value
|
||||||
is followed by <code>...</code>. In this case no new slice is created.
|
for a <code>...T</code> parameter. In this case no new slice is created.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue