]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc/go1.22: correct the system call name used for zero-copy from net.TCPConn to net...
authorAndy Pan <panjf2000@gmail.com>
Wed, 13 Dec 2023 01:23:18 +0000 (09:23 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 14 Dec 2023 18:21:21 +0000 (18:21 +0000)
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>

doc/go1.22.html

index cd20bb747908e79937937a14a97e7349685719f7..bf01cffce05ff69887429e41ef502da9083596bf 100644 (file)
@@ -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>