]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc: fill out net/http.Request.PathValue,SetPathValue section
authorDan Peterson <danp@danp.net>
Thu, 21 Dec 2023 17:58:00 +0000 (13:58 -0400)
committerJonathan Amsterdam <jba@google.com>
Tue, 16 Jan 2024 22:34:54 +0000 (22:34 +0000)
And add a missing code tag wrap elsewhere.

Updates #61410
Updates #61422

Change-Id: I70a9c4ecaf4056af2e88d777b8db892a45dfcb9f
Reviewed-on: https://go-review.googlesource.com/c/go/+/552195
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dan Peterson <danp@danp.net>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

doc/go1.22.html

index 44d783e1bd621023c5c6c45e6c398acab885b255..b04f50192cc00f730f98ca80e44d7adfdc1e5ed0 100644 (file)
@@ -692,7 +692,7 @@ We plan to include an API migration tool in a future release, likely Go 1.23.
 <dl id="math/big"><dt><a href="/pkg/math/big/">math/big</a></dt>
   <dd>
     <p><!-- https://go.dev/issue/50489, CL 539299 -->
-      The new method <a href="/pkg/math/big#Rat.FloatPrec">Rat.FloatPrec</a> computes the number of fractional decimal digits
+      The new method <a href="/pkg/math/big#Rat.FloatPrec"><code>Rat.FloatPrec</code></a> computes the number of fractional decimal digits
       required to represent a rational number accurately as a floating-point number, and whether accurate decimal representation
       is possible in the first place.
     </p>
@@ -736,9 +736,14 @@ We plan to include an API migration tool in a future release, likely Go 1.23.
       <a href="/doc/godebug"><code>GODEBUG</code></a> field <code>httplaxcontentlength=1</code>.
     </p>
 
-    <!-- <p><\!-- CL 528355 -\-> -->
-    <!--   TODO: <a href="https://go.dev/cl/528355">https://go.dev/cl/528355</a>: net/http: implement path value methods on Request; modified api/next/61410.txt -->
-    <!-- </p> -->
+    <p><!-- https://go.dev/issue/61410, CL 528355 -->
+      The new method
+      <a href="/pkg/net/http#Request.PathValue"><code>Request.PathValue</code></a>
+      returns path wildcard values from a request
+      and the new method
+      <a href="/pkg/net/http#Request.SetPathValue"><code>Request.SetPathValue</code></a>
+      sets path wildcard values on a request.
+    </p>
   </dd>
 </dl><!-- net/http -->