Skip to content

Commit

Permalink
doc/go1.22: correct the system call name used for zero-copy from net.…
Browse files Browse the repository at this point in the history
…TCPConn to net.UnixConn

For golang#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]>
  • Loading branch information
panjf2000 authored and ezz-no committed Feb 17, 2024
1 parent 2869091 commit ea165e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/go1.22.html
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<p><!-- https://go.dev/issue/58808 -->
When <a href="/pkg/io#Copy"><code>io.Copy</code></a> copies
from a <code>TCPConn</code> to a <code>UnixConn</code>,
it will now use Linux's <code>sendfile(2)</code> system call if possible,
it will now use Linux's <code>splice(2)</code> system call if possible,
using the new method <a href="/pkg/net#TCPConn.WriteTo"><code>TCPConn.WriteTo</code></a>.
</p>

Expand Down

0 comments on commit ea165e7

Please sign in to comment.