diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-27 15:18:46 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-06-27 15:18:46 +1000 |
commit | 11a7a70a6f86e0d01d65884d437b46e81fae5600 (patch) | |
tree | 4440a81edc2e0c3a80814d54c25d07985df5c6ba | |
parent | 735358bcf4e9219f14c01f0bf251f860ebabffae (diff) |
docs/usocket: Minor fixes to grammar of getaddrinfo.
-rw-r--r-- | docs/library/usocket.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/library/usocket.rst b/docs/library/usocket.rst index 3c8f878f1..461e37b35 100644 --- a/docs/library/usocket.rst +++ b/docs/library/usocket.rst @@ -83,8 +83,8 @@ Functions Translate the host/port argument into a sequence of 5-tuples that contain all the necessary arguments for creating a socket connected to that service. Arguments - *af*, *type*, and *proto* (which have the same meaning as for `socket()` function) - can be used to filter which kind of addresses are returned. If a parameter not + *af*, *type*, and *proto* (which have the same meaning as for the `socket()` function) + can be used to filter which kind of addresses are returned. If a parameter is not specified or zero, all combinations of addresses can be returned (requiring filtering on the user side). @@ -95,14 +95,14 @@ Functions The following example shows how to connect to a given url:: s = usocket.socket() - # This assumes that if "type" is not specified, address for + # This assumes that if "type" is not specified, an address for # SOCK_STREAM will be returned, which may be not true s.connect(usocket.getaddrinfo('www.micropython.org', 80)[0][-1]) Recommended use of filtering params:: s = usocket.socket() - # Guaranteedly returns address which can be connect'ed to for + # Guaranteed to return an address which can be connect'ed to for # stream operation. s.connect(usocket.getaddrinfo('www.micropython.org', 80, 0, SOCK_STREAM)[0][-1]) |