From: Robert Griesemer Date: Tue, 18 Jul 2023 23:21:45 +0000 (-0700) Subject: spec: clarify prose in rule for clear built-in X-Git-Tag: go1.22rc1~1603 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cd6c4e0557ec9ebba2b62a8632e9fcba67ed518f;p=gostls13.git 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 Auto-Submit: Robert Griesemer Reviewed-by: Ian Lance Taylor Reviewed-by: Robert Griesemer --- diff --git a/doc/go_spec.html b/doc/go_spec.html index c2fa871eaa..9370cf632c 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -7324,7 +7324,8 @@ clear(t) type parameter see below

-If the argument type is a type parameter, +If the type of the argument to clear is a +type parameter, all types in its type set must be maps or slices, and clear performs the operation corresponding to the actual type argument.