]> Cypherpunks.ru repositories - gostls13.git/commitdiff
spec: clarify prose in rule for clear built-in
authorRobert Griesemer <gri@golang.org>
Tue, 18 Jul 2023 23:21:45 +0000 (16:21 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 18 Jul 2023 23:43:01 +0000 (23:43 +0000)
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>
doc/go_spec.html

index c2fa871eaad8e5ea26aa0bceeb7475e6a8afe949..9370cf632c2e29430be66871cf30e08339219a4c 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of June 14, 2023",
+       "Subtitle": "Version of July 19, 2023",
        "Path": "/ref/spec"
 }-->
 
@@ -7324,7 +7324,8 @@ clear(t)    type parameter    see below
 </pre>
 
 <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>
 performs the operation corresponding to the actual type argument.
 </p>