From c88489d7ffd025dbd818136e1b24a580f1afb9de Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 27 May 2026 11:58:23 -0400
Subject: [PATCH] docs: correct documentation for SDLNet_UDP_Bind().
Reference Issue #171.
---
include/SDL_net.h | 6 +++---
src/SDLnetUDP.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/SDL_net.h b/include/SDL_net.h
index b01ed86..b654eb0 100644
--- a/include/SDL_net.h
+++ b/include/SDL_net.h
@@ -549,9 +549,9 @@ extern DECLSPEC void SDLCALL SDLNet_UDP_SetPacketLoss(UDPsocket sock, int percen
* but SDL_net's UDP sockets also "bind" to a "channel" on top of that, with
* SDLNet_UDP_Bind(). But the term is used for both.
*
- * If `channel` is -1, then the first unbound channel that has not yet been
- * bound to the maximum number of addresses will be bound with the given
- * address as its primary address.
+ * If `channel` is -1, then the first channel that has not yet
+ * been bound to the maximum number of addresses will be bound with
+ * the given address.
*
* If the channel is already bound, this new address will be added to the list
* of valid source addresses for packets arriving on the channel. If the
diff --git a/src/SDLnetUDP.c b/src/SDLnetUDP.c
index 5b58db8..c6bcde9 100644
--- a/src/SDLnetUDP.c
+++ b/src/SDLnetUDP.c
@@ -242,9 +242,9 @@ static int ValidChannel(int channel)
}
/* Bind the address 'address' to the requested channel on the UDP socket.
- If the channel is -1, then the first unbound channel that has not yet
+ If the channel is -1, then the first channel that has not yet
been bound to the maximum number of addresses will be bound with
- the given address as it's primary address.
+ the given address.
If the channel is already bound, this new address will be added to the
list of valid source addresses for packets arriving on the channel.
If the channel is not already bound, then the address becomes the primary