Skip to content

Commit cd6c4e0

Browse files
griesemergopherbot
authored andcommitted
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 <[email protected]> Auto-Submit: Robert Griesemer <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Robert Griesemer <[email protected]>
1 parent 813aad5 commit cd6c4e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/go_spec.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--{
22
"Title": "The Go Programming Language Specification",
3-
"Subtitle": "Version of June 14, 2023",
3+
"Subtitle": "Version of July 19, 2023",
44
"Path": "/ref/spec"
55
}-->
66

@@ -7324,7 +7324,8 @@ <h3 id="Clear">Clear</h3>
73247324
</pre>
73257325

73267326
<p>
7327-
If the argument type is a <a href="#Type_parameter_declarations">type parameter</a>,
7327+
If the type of the argument to <code>clear</code> is a
7328+
<a href="#Type_parameter_declarations">type parameter</a>,
73287329
all types in its type set must be maps or slices, and <code>clear</code>
73297330
performs the operation corresponding to the actual type argument.
73307331
</p>

0 commit comments

Comments
 (0)