Skip to content

Commit 2015a61

Browse files
authored
Merge pull request #8580 from tz-arm/fix_incorrect_comment_in_socket_h
Fix the incorrect comment for set_blocking()
2 parents 8976709 + 2c56bd8 commit 2015a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/netsocket/Socket.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ class Socket {
156156
* blocking operations such as send/recv/accept return
157157
* NSAPI_ERROR_WOULD_BLOCK if they can not continue.
158158
*
159-
* set_blocking(false) is equivalent to set_timeout(-1)
160-
* set_blocking(true) is equivalent to set_timeout(0)
159+
* set_blocking(false) is equivalent to set_timeout(0)
160+
* set_blocking(true) is equivalent to set_timeout(-1)
161161
*
162162
* @param blocking true for blocking mode, false for non-blocking mode.
163163
*/

0 commit comments

Comments
 (0)