]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc/go1.22: document ast.Unparen
authorAlan Donovan <adonovan@google.com>
Mon, 11 Dec 2023 22:50:08 +0000 (17:50 -0500)
committerAlan Donovan <adonovan@google.com>
Tue, 12 Dec 2023 17:12:55 +0000 (17:12 +0000)
Updates #60061

Change-Id: Ifa51f0bac0346ebc352c7524204aa94336a2b5ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/548882
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
doc/go1.22.html

index f1e713cb9e3217a20605edb8ff52b04d04c83dcc..a7a51a1ffd98445f05e2f3c9f1ed48766fb7b005 100644 (file)
@@ -492,7 +492,10 @@ defer func() {
     </p>
 
     <p><!-- https://go.dev/issue/60061 -->
-      TODO: <a href="https://go.dev/issue/60061">https://go.dev/issue/60061</a>: go/ast: add func Unparen(Expr) Expr
+      The new <a href='https://pkg.go.dev/go/ast#Unparen'><code>ast.Unparen</code></a>
+      function removes any enclosing
+      <a href='https://pkg.go.dev/go/ast#ParenExpr'>parentheses</a> from
+      an <a href='https://pkg.go.dev/go/ast#Expr'>expression</a>.
     </p>
   </dd>
 </dl><!-- go/ast -->