Skip to content

Commit a142d65

Browse files
CAFxXianlancetaylor
authored andcommitted
doc: go1.18 release notes for CLs 323318/332771
Updates #47694 Change-Id: Ib76737996a701906117e096eb6d05b388576a874 GitHub-Last-Rev: 05b9649 GitHub-Pull-Request: #49588 Reviewed-on: https://go-review.googlesource.com/c/go/+/363840 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Trust: Daniel Martí <mvdan@mvdan.cc>
1 parent fad67f8 commit a142d65

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

doc/go1.18.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
304304

305305
<dl id="bytes"><dt><a href="/pkg/bytes/">bytes</a></dt>
306306
<dd>
307-
<p><!-- CL 332771 -->
308-
<a href="/pkg/bytes#Trim"><code>bytes.Trim</code></a> and related
309-
functions, have had their most common use cases optimized.
307+
<p><!-- CL 323318, CL 332771 -->
308+
<a href="/pkg/bytes/#Trim"><code>Trim</code></a>, <a href="/pkg/bytes/#TrimLeft"><code>TrimLeft</code></a>,
309+
and <a href="/pkg/bytes/#TrimRight"><code>TrimRight</code></a> are now allocation free and, especially for
310+
small ASCII cutsets, up to 10 times faster.
310311
</p>
311312

312313
<p><!-- CL 359485 -->
@@ -447,9 +448,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
447448
the input string's memory.
448449
</p>
449450

450-
<p><!-- CL 332771 -->
451-
<a href="/pkg/bytes#Trim"><code>strings.Trim</code></a> and related functions
452-
functions, have had their most common use cases optimized.
451+
<p><!-- CL 323318, CL 332771 -->
452+
<a href="/pkg/strings/#Trim"><code>Trim</code></a>, <a href="/pkg/strings/#TrimLeft"><code>TrimLeft</code></a>,
453+
and <a href="/pkg/strings/#TrimRight"><code>TrimRight</code></a> are now allocation free and, especially for
454+
small ASCII cutsets, up to 10 times faster.
453455
</p>
454456

455457
<p><!-- CL 359485 -->

0 commit comments

Comments
 (0)