summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-06-30 00:34:52 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-06-30 14:50:52 +0300
commit871a45dd0c96097601b4cf819aded020150a098c (patch)
treede344b54eff5e304339b50fd13cc05c7fea7e3be
parentf2babeaeda0de0b99646b6abc85c5b48600009bd (diff)
downloadmicropython-871a45dd0c96097601b4cf819aded020150a098c.tar.gz
micropython-871a45dd0c96097601b4cf819aded020150a098c.zip
docs/{uselect,ussl,ustruct}: Use markup adhering to latest docs conventions.
-rw-r--r--docs/library/uselect.rst2
-rw-r--r--docs/library/ussl.rst4
-rw-r--r--docs/library/ustruct.rst16
3 files changed, 11 insertions, 11 deletions
diff --git a/docs/library/uselect.rst b/docs/library/uselect.rst
index 68df9d3815..a4026e98c3 100644
--- a/docs/library/uselect.rst
+++ b/docs/library/uselect.rst
@@ -52,7 +52,7 @@ Methods
Wait for at least one of the registered objects to become ready. Returns
list of (``obj``, ``event``, ...) tuples, ``event`` element specifies
- which events happened with a stream and is a combination of `select.POLL*`
+ which events happened with a stream and is a combination of ``select.POLL*``
constants described above. There may be other elements in tuple, depending
on a platform and version, so don't assume that its size is 2. In case of
timeout, an empty list is returned.
diff --git a/docs/library/ussl.rst b/docs/library/ussl.rst
index 36f6d65a4a..62b6db777b 100644
--- a/docs/library/ussl.rst
+++ b/docs/library/ussl.rst
@@ -13,7 +13,7 @@ Functions
.. function:: ssl.wrap_socket(sock, server_side=False, keyfile=None, certfile=None, cert_reqs=CERT_NONE, ca_certs=None)
- Takes a stream `sock` (usually usocket.socket instance of ``SOCK_STREAM`` type),
+ Takes a stream *sock* (usually usocket.socket instance of ``SOCK_STREAM`` type),
and returns an instance of ssl.SSLSocket, which wraps the underlying stream in
an SSL context. Returned object has the usual stream interface methods like
`read()`, `write()`, etc. In MicroPython, the returned object does not expose
@@ -43,4 +43,4 @@ Constants
ssl.CERT_OPTIONAL
ssl.CERT_REQUIRED
- Supported values for `cert_reqs` parameter.
+ Supported values for *cert_reqs* parameter.
diff --git a/docs/library/ustruct.rst b/docs/library/ustruct.rst
index 74e42af07a..a0a0ab65c0 100644
--- a/docs/library/ustruct.rst
+++ b/docs/library/ustruct.rst
@@ -18,26 +18,26 @@ Functions
.. function:: calcsize(fmt)
- Return the number of bytes needed to store the given `fmt`.
+ Return the number of bytes needed to store the given *fmt*.
.. function:: pack(fmt, v1, v2, ...)
- Pack the values `v1`, `v2`, ... according to the format string `fmt`.
+ Pack the values *v1*, *v2*, ... according to the format string *fmt*.
The return value is a bytes object encoding the values.
.. function:: pack_into(fmt, buffer, offset, v1, v2, ...)
- Pack the values `v1`, `v2`, ... according to the format string `fmt`
- into a `buffer` starting at `offset`. `offset` may be negative to count
- from the end of `buffer`.
+ Pack the values *v1*, *v2*, ... according to the format string *fmt*
+ into a *buffer* starting at *offset*. *offset* may be negative to count
+ from the end of *buffer*.
.. function:: unpack(fmt, data)
- Unpack from the `data` according to the format string `fmt`.
+ Unpack from the *data* according to the format string *fmt*.
The return value is a tuple of the unpacked values.
.. function:: unpack_from(fmt, data, offset=0)
- Unpack from the `data` starting at `offset` according to the format string
- `fmt`. `offset` may be negative to count from the end of `buffer`. The return
+ Unpack from the *data* starting at *offset* according to the format string
+ *fmt*. *offset* may be negative to count from the end of *buffer*. The return
value is a tuple of the unpacked values.