Skip to content

Commit 2be0af7

Browse files
Mel WCruz Monrreal II
authored andcommitted
Articles and capitalization
1 parent 722d382 commit 2be0af7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

features/netsocket/DNS.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DNS {
3939

4040
/** Hostname translation callback for gethostbyname_async.
4141
*
42-
* Callback will be called after DNS resolution completes or a failure occurs.
42+
* The callback is called after DNS resolution completes, or a failure occurs.
4343
*
4444
* Callback should not take more than 10ms to execute, otherwise it might
4545
* prevent underlying thread processing. A portable user of the callback
@@ -60,14 +60,14 @@ class DNS {
6060
* If no stack-specific DNS resolution is provided, the hostname
6161
* will be resolved using a UDP socket on the stack.
6262
*
63-
* Call is non-blocking. Result of the DNS operation is returned by the callback.
64-
* If this function returns failure, callback will not be called. If it is successful,
65-
* (IP address was found from DNS cache), callback will be called
66-
* before function returns.
63+
* The call is non-blocking. The result of the DNS operation is returned by the callback.
64+
* If this function returns failure, the callback will not be called. If it is successful,
65+
* (the IP address was found from the DNS cache), the callback will be called
66+
* before the function returns.
6767
*
6868
* @param host Hostname to resolve.
6969
* @param callback Callback that is called to return the result.
70-
* @param version IP version of address to resolve. NSAPI_UNSPEC indicates
70+
* @param version IP version of address to resolve. NSAPI_UNSPEC indicates that the
7171
* version is chosen by the stack (defaults to NSAPI_UNSPEC).
7272
* @return NSAPI_ERROR_OK on immediate success,
7373
* negative error code on immediate failure or
@@ -79,9 +79,9 @@ class DNS {
7979

8080
/** Cancel asynchronous hostname translation.
8181
*
82-
* When translation is cancelled, callback will not be called.
82+
* When translation is canceled, callback is not called.
8383
*
84-
* @param id Unique id of the hostname translation operation returned by gethostbyname_async.
84+
* @param id Unique ID of the hostname translation operation returned by gethostbyname_async.
8585
* @return NSAPI_ERROR_OK on success, negative error code on failure.
8686
*/
8787
virtual nsapi_error_t gethostbyname_async_cancel(int id) = 0;

0 commit comments

Comments
 (0)