From 119a2d434de5005f1e115241d5fe7bdb9d218d33 Mon Sep 17 00:00:00 2001 From: Terence Zhang Date: Tue, 30 Oct 2018 15:41:32 +0800 Subject: [PATCH] Fix the incorrect comment for set_blocking() --- features/netsocket/Socket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/netsocket/Socket.h b/features/netsocket/Socket.h index 8b53b067fa..0193f6ff27 100644 --- a/features/netsocket/Socket.h +++ b/features/netsocket/Socket.h @@ -155,8 +155,8 @@ public: * blocking operations such as send/recv/accept return * NSAPI_ERROR_WOULD_BLOCK if they can not continue. * - * set_blocking(false) is equivalent to set_timeout(-1) - * set_blocking(true) is equivalent to set_timeout(0) + * set_blocking(false) is equivalent to set_timeout(0) + * set_blocking(true) is equivalent to set_timeout(-1) * * @param blocking true for blocking mode, false for non-blocking mode. */