]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc/go1.21: mention html/template.ErrJSTemplate
authorIan Lance Taylor <iant@golang.org>
Thu, 8 Jun 2023 00:07:59 +0000 (17:07 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 8 Jun 2023 16:48:19 +0000 (16:48 +0000)
For #59584

Change-Id: Iaa3f8b23010ad452c134ac608c63d2a41cc4e409
Reviewed-on: https://go-review.googlesource.com/c/go/+/501698
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Bypass: Ian Lance Taylor <iant@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
doc/go1.21.html

index 1f9d8ffea1716ae78ab294d26e1e303a41e0a53e..4729fe9dfcf3414ae5ccaca9e2958e46815a4099 100644 (file)
@@ -735,12 +735,11 @@ Do not send CLs removing the interior tags from such phrases.
 
 <dl id="html/template"><dt><a href="/pkg/html/template/">html/template</a></dt>
   <dd>
-    <p><!-- https://go.dev/issue/59584 -->
-      TODO: <a href="https://go.dev/issue/59584">https://go.dev/issue/59584</a>: expose ErrJSTemplate
-    </p>
-
-    <p><!-- CL 496395 -->
-      TODO: <a href="https://go.dev/cl/496395">https://go.dev/cl/496395</a>: html/template: expose ErrJSTemplate; modified api/next/59584.txt
+    <p><!-- https://go.dev/issue/59584, CL 496395 -->
+      The new error
+      <a href="/pkg/html/template/#ErrJSTemplate"><code>ErrJSTemplate</code></a>
+      is returned when an action appears in a JavaScript template
+      literal. Previously an unexported error was returned.
     </p>
   </dd>
 </dl><!-- html/template -->