Skip to content

Commit 23fee06

Browse files
panjf2000gopherbot
authored andcommitted
doc/go1.22: correct the system call name used for zero-copy from net.TCPConn to net.UnixConn
For #58808 Change-Id: I9b27af30888aaaa9659387a32c57aaea136b1c3a Reviewed-on: https://go-review.googlesource.com/c/go/+/549335 Reviewed-by: Damien Neil <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Auto-Submit: Michael Pratt <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 2f70687 commit 23fee06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/go1.22.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
616616
<p><!-- https://go.dev/issue/58808 -->
617617
When <a href="/pkg/io#Copy"><code>io.Copy</code></a> copies
618618
from a <code>TCPConn</code> to a <code>UnixConn</code>,
619-
it will now use Linux's <code>sendfile(2)</code> system call if possible,
619+
it will now use Linux's <code>splice(2)</code> system call if possible,
620620
using the new method <a href="/pkg/net#TCPConn.WriteTo"><code>TCPConn.WriteTo</code></a>.
621621
</p>
622622

0 commit comments

Comments
 (0)