From 8eb2ec4fb5247f6adea1ddcb1c19c342eca28312 Mon Sep 17 00:00:00 2001 From: Wang Fang Date: Fri, 25 Dec 2020 11:46:41 +0800 Subject: [PATCH] docs: update the documents based on customer feedbacks --- docs/en/api-reference/protocols/icmp_echo.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/api-reference/protocols/icmp_echo.rst b/docs/en/api-reference/protocols/icmp_echo.rst index a6af18ee30..23e321cfe2 100644 --- a/docs/en/api-reference/protocols/icmp_echo.rst +++ b/docs/en/api-reference/protocols/icmp_echo.rst @@ -70,7 +70,7 @@ Example method to create a new ping session and register callbacks: struct addrinfo *res = NULL; memset(&hint, 0, sizeof(hint)); memset(&target_addr, 0, sizeof(target_addr)); - getaddrinfo("www.espressif.com", NULL, &hint, &res) == 0); + getaddrinfo("www.espressif.com", NULL, &hint, &res); struct in_addr addr4 = ((struct sockaddr_in *) (res->ai_addr))->sin_addr; inet_addr_to_ip4addr(ip_2_ip4(&target_addr), &addr4); freeaddrinfo(res);