Skip to content

Commit 5527d7f

Browse files
180909dmitshur
authored andcommitted
doc/go1.18: add Clone doc
For golang#47694 Change-Id: I3b135f6ff199d7a9746726b131fbe7dd97a8e95e Reviewed-on: https://go-review.googlesource.com/c/go/+/364254 Reviewed-by: Dmitri Shuralyov <[email protected]> Trust: Heschi Kreinick <[email protected]>
1 parent 67dd9ee commit 5527d7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/go1.18.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,9 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
439439
<dl id="strings"><dt><a href="/pkg/strings/">strings</a></dt>
440440
<dd>
441441
<p><!-- CL 345849 -->
442-
TODO: <a href="https://golang.org/cl/345849">https://golang.org/cl/345849</a>: add Clone function
442+
The new <a href="/pkg/strings/#Clone"><code>Clone</code></a> function copies the input
443+
<code>string</code> without the returned cloned <code>string</code> referencing
444+
the input string's memory.
443445
</p>
444446

445447
<p><!-- CL 332771 -->

0 commit comments

Comments
 (0)