File 0837-Fix-gen_tcp-send-2-docs.patch of Package erlang
From d1e95c52ebfa7a79f0fa91d35848caf38cba9056 Mon Sep 17 00:00:00 2001
From: Jan Uhlig <juhlig@hnc-agency.org>
Date: Wed, 4 Dec 2024 15:49:12 +0100
Subject: [PATCH] Fix gen_tcp:send/2 docs
---
lib/kernel/src/gen_tcp.erl | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/kernel/doc/src/gen_tcp.xml b/lib/kernel/doc/src/gen_tcp.xml
index cd67a28d9e..c095c43082 100644
--- a/lib/kernel/doc/src/gen_tcp.xml
+++ b/lib/kernel/doc/src/gen_tcp.xml
@@ -598,11 +598,11 @@ do_recv(Sock, Bs) ->
expires (the function can hang even when using 'inet' backend
if the internal buffers are full). </p>
<p>If this happens when using <c>packet =/= raw</c>, we have a partial
- package written. A new package therefore <em>must not</em> be written
+ packet written. A new packet therefore <em>must not</em> be written
at this point, as there is no way for the peer to distinguish this
- from the data portion of the current package. Instead, set package
- to raw, send the rest data (as raw data) and then set package to
- the wanted package type again. </p>
+ from the data portion of the current packet. Instead, set <c>packet</c>
+ option to raw, send the rest data (as raw data) and then set <c>packet</c>
+ back to the correct packet type. </p>
</note>
</desc>
</func>
--
2.43.0