aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Pan <panjf2000@gmail.com>2023-12-13 09:23:18 +0800
committerGopher Robot <gobot@golang.org>2023-12-14 18:21:21 +0000
commit23fee06a140ea6e5ac184e255786900479ca52ca (patch)
tree80afd8f59aed000b1050d303c5b9089465dfd817
parent2f706871b95ceedecb0d0cf62b83e4f0f9a403b7 (diff)
downloadgo-23fee06a140ea6e5ac184e255786900479ca52ca.tar.gz
go-23fee06a140ea6e5ac184e255786900479ca52ca.zip
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 <dneil@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
-rw-r--r--doc/go1.22.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/go1.22.html b/doc/go1.22.html
index cd20bb7479..bf01cffce0 100644
--- a/doc/go1.22.html
+++ b/doc/go1.22.html
@@ -616,7 +616,7 @@ defer func() {
<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>