]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: add Clone doc
authorjiahua wang <wjh180909@gmail.com>
Tue, 16 Nov 2021 07:36:37 +0000 (15:36 +0800)
committerDmitri Shuralyov <dmitshur@golang.org>
Wed, 24 Nov 2021 21:08:29 +0000 (21:08 +0000)
For #47694

Change-Id: I3b135f6ff199d7a9746726b131fbe7dd97a8e95e
Reviewed-on: https://go-review.googlesource.com/c/go/+/364254
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Heschi Kreinick <heschi@google.com>

doc/go1.18.html

index c6c338984c5edd7c6e09f847c28c1fce96edcfc7..6d813dce2e0e0d47d0909c785f036dab6ff9560b 100644 (file)
@@ -439,7 +439,9 @@ proposal</a>.
 <dl id="strings"><dt><a href="/pkg/strings/">strings</a></dt>
   <dd>
     <p><!-- CL 345849 -->
-      TODO: <a href="https://golang.org/cl/345849">https://golang.org/cl/345849</a>: add Clone function
+      The new <a href="/pkg/strings/#Clone"><code>Clone</code></a> function copies the input
+      <code>string</code> without the returned cloned <code>string</code> referencing
+      the input string's memory.
     </p>
 
     <p><!-- CL 332771 -->