Skip to content

Commit 688bd9e

Browse files
committed
include: Fix a copy/paste error in the docs that hit multiple functions.
1 parent 024e092 commit 688bd9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/SDL3_net/SDL_net.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ extern SDL_DECLSPEC int SDLCALL NET_GetConnectionStatus(NET_StreamSocket *sock);
722722
* other networking failures occurred), this function will report failure by
723723
* returning false. Stream sockets only report failure for unrecoverable
724724
* conditions; once a stream socket fails, you should assume it is no longer
725-
* usable and should destroy it with SDL_DestroyStreamSocket().
725+
* usable and should destroy it with NET_DestroyStreamSocket().
726726
*
727727
* \param sock the stream socket to send data through.
728728
* \param buf a pointer to the data to send.
@@ -757,7 +757,7 @@ extern SDL_DECLSPEC bool SDLCALL NET_WriteToStreamSocket(NET_StreamSocket *sock,
757757
* other networking failures occurred), this function will report failure by
758758
* returning -1. Stream sockets only report failure for unrecoverable
759759
* conditions; once a stream socket fails, you should assume it is no longer
760-
* usable and should destroy it with SDL_DestroyStreamSocket().
760+
* usable and should destroy it with NET_DestroyStreamSocket().
761761
*
762762
* \param sock the stream socket to query.
763763
* \returns number of bytes still pending transmission, -1 on failure; call
@@ -796,7 +796,7 @@ extern SDL_DECLSPEC int SDLCALL NET_GetStreamSocketPendingWrites(NET_StreamSocke
796796
* other networking failures occurred), this function will report failure by
797797
* returning -1. Stream sockets only report failure for unrecoverable
798798
* conditions; once a stream socket fails, you should assume it is no longer
799-
* usable and should destroy it with SDL_DestroyStreamSocket().
799+
* usable and should destroy it with NET_DestroyStreamSocket().
800800
*
801801
* \param sock the stream socket to wait on.
802802
* \param timeout Number of milliseconds to wait for draining to complete. -1
@@ -846,7 +846,7 @@ extern SDL_DECLSPEC int SDLCALL NET_WaitUntilStreamSocketDrained(NET_StreamSocke
846846
* other networking failures occurred), this function will report failure by
847847
* returning -1. Stream sockets only report failure for unrecoverable
848848
* conditions; once a stream socket fails, you should assume it is no longer
849-
* usable and should destroy it with SDL_DestroyStreamSocket().
849+
* usable and should destroy it with NET_DestroyStreamSocket().
850850
*
851851
* \param sock the stream socket to receive data from.
852852
* \param buf a pointer to a buffer where received data will be collected.

0 commit comments

Comments
 (0)