]> Cypherpunks repositories - gostls13.git/commitdiff
[go] doc: document speedups to Trim[|Left|Right]
authorJeremy Faller <jeremy@golang.org>
Fri, 19 Nov 2021 20:11:22 +0000 (15:11 -0500)
committerJeremy Faller <jeremy@golang.org>
Fri, 19 Nov 2021 21:36:24 +0000 (21:36 +0000)
CL: #332771

Updates: #47694
Change-Id: I8c729084b7a8745ec73f87ef3c469edbd596ddb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/365318
Trust: Jeremy Faller <jeremy@golang.org>
Run-TryBot: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Joe Tsai <joetsai@digital-static.net>
doc/go1.18.html

index 3018ed1b4a8cf50c6fa733ae40614799e8d3f7b1..cc5c5427469f69202c91369c2909e77fcc08f1fe 100644 (file)
@@ -254,7 +254,8 @@ proposal</a>.
 <dl id="bytes"><dt><a href="/pkg/bytes/">bytes</a></dt>
   <dd>
     <p><!-- CL 332771 -->
-      TODO: <a href="https://golang.org/cl/332771">https://golang.org/cl/332771</a>: avoid allocations in Trim/TrimLeft/TrimRight
+      <a href="/pkg/bytes#Trim"><code>bytes.Trim</code></a> and related
+      functions, have had their most common use cases optimized.
     </p>
 
     <p><!-- CL 359485 -->
@@ -394,7 +395,8 @@ proposal</a>.
     </p>
 
     <p><!-- CL 332771 -->
-      TODO: <a href="https://golang.org/cl/332771">https://golang.org/cl/332771</a>: avoid allocations in Trim/TrimLeft/TrimRight
+      <a href="/pkg/bytes#Trim"><code>strings.Trim</code></a> and related functions
+      functions, have had their most common use cases optimized.
     </p>
 
     <p><!-- CL 359485 -->