mirror of https://github.com/golang/go.git
[go] doc: document speedups to Trim[|Left|Right]
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>
This commit is contained in:
parent
0f75a9ecdf
commit
aec5c2eed6
|
|
@ -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 -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue