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>
<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 -->