summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsquareplusc <cliechti@gmx.net>2020-09-14 05:08:20 +0200
committerGitHub <noreply@github.com>2020-09-14 05:08:20 +0200
commitf47bb605afe868c471f7765cb3c428e1c0bfa2cc (patch)
tree2954657926b8534bed208943600f89655e652a6a
parent9e9bcebc6dc6730e77c6290215ea3c449d5e453e (diff)
parent5d2c1091d71c3e3c14690e63c120cd082f8db48b (diff)
downloadpyserial-git-f47bb605afe868c471f7765cb3c428e1c0bfa2cc.tar.gz
Merge pull request #510 from SConaway/patch-1
docs: Fix tiny typo in docs
-rw-r--r--documentation/pyserial_api.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/pyserial_api.rst b/documentation/pyserial_api.rst
index 76177dd..efd82c1 100644
--- a/documentation/pyserial_api.rst
+++ b/documentation/pyserial_api.rst
@@ -184,7 +184,7 @@ Native ports
Write the bytes *data* to the port. This should be of type ``bytes``
(or compatible such as ``bytearray`` or ``memoryview``). Unicode
- strings must be encoded (e.g. ``'hello'.encode('utf-8'``).
+ strings must be encoded (e.g. ``'hello'.encode('utf-8')``.
.. versionchanged:: 2.5
Accepts instances of :class:`bytes` and :class:`bytearray` when