]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.17: document changes to os package
authorVishal Dalwadi <dalwadivishal26@gmail.com>
Fri, 7 May 2021 04:35:36 +0000 (10:05 +0530)
committerDmitri Shuralyov <dmitshur@golang.org>
Thu, 20 May 2021 17:40:58 +0000 (17:40 +0000)
Documents the changes to File.WriteString method.

For #44513.
Fixes #46018.

Change-Id: I3a8ef9df9f84662614d54802710bd705d626b995
Reviewed-on: https://go-review.googlesource.com/c/go/+/317910
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Cherry Mui <cherryyz@google.com>

doc/go1.17.html

index 97307bc508dfb96ed0dd2f0b7dde5a064e9a6815..48b5563602af08664fd4209461bf60c12c26cc22 100644 (file)
@@ -428,7 +428,8 @@ Do not send CLs removing the interior tags from such phrases.
 <dl id="os"><dt><a href="/pkg/os/">os</a></dt>
   <dd>
     <p><!-- CL 268020 -->
-      TODO: <a href="https://golang.org/cl/268020">https://golang.org/cl/268020</a>: avoid allocation in File.WriteString
+      The <a href="/pkg/os/#File.WriteString"><code>File.WriteString</code></a> method
+      has been optimized to no longer make a copy of the input string.
     </p>
   </dd>
 </dl><!-- os -->