mirror of
https://github.com/golang/go
synced 2024-09-29 04:34:32 -06:00
spec: clarify prose in rule for clear built-in
Per feedback on #56351. For #56351. Change-Id: I63dd1713a1efe4d7180d932dbd8e1510cbb32e90 Reviewed-on: https://go-review.googlesource.com/c/go/+/510935 TryBot-Bypass: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Robert Griesemer <gri@google.com>
This commit is contained in:
parent
813aad51d9
commit
cd6c4e0557
@ -1,6 +1,6 @@
|
|||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Version of June 14, 2023",
|
"Subtitle": "Version of July 19, 2023",
|
||||||
"Path": "/ref/spec"
|
"Path": "/ref/spec"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
@ -7324,7 +7324,8 @@ clear(t) type parameter see below
|
|||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
If the argument type is a <a href="#Type_parameter_declarations">type parameter</a>,
|
If the type of the argument to <code>clear</code> is a
|
||||||
|
<a href="#Type_parameter_declarations">type parameter</a>,
|
||||||
all types in its type set must be maps or slices, and <code>clear</code>
|
all types in its type set must be maps or slices, and <code>clear</code>
|
||||||
performs the operation corresponding to the actual type argument.
|
performs the operation corresponding to the actual type argument.
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user