Skip to content

Commit 7c692cc

Browse files
VishalDalwadidmitshur
authored andcommitted
doc/go1.17: document changes to os package
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 <[email protected]> Trust: Cherry Mui <[email protected]>
1 parent ce9a3b7 commit 7c692cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/go1.17.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
428428
<dl id="os"><dt><a href="/pkg/os/">os</a></dt>
429429
<dd>
430430
<p><!-- CL 268020 -->
431-
TODO: <a href="https://golang.org/cl/268020">https://golang.org/cl/268020</a>: avoid allocation in File.WriteString
431+
The <a href="/pkg/os/#File.WriteString"><code>File.WriteString</code></a> method
432+
has been optimized to no longer make a copy of the input string.
432433
</p>
433434
</dd>
434435
</dl><!-- os -->

0 commit comments

Comments
 (0)