From cd6c4e0557ec9ebba2b62a8632e9fcba67ed518f Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 18 Jul 2023 16:21:45 -0700 Subject: [PATCH] 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 --- doc/go_spec.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.

-- 2.44.0