summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej BartosiƄski <Neob91@users.noreply.github.com>2020-04-10 02:59:23 +0200
committerGitHub <noreply@github.com>2020-04-09 19:59:23 -0500
commita5bb7aab524f4edb986d33e4a47975a8e2d0c43c (patch)
tree8045d5bde1af7d424082dc8a4c5c091d985a28c1
parent3a3db7510b33eb22c63ad94bc735a9032949249f (diff)
downloadsix-git-a5bb7aab524f4edb986d33e4a47975a8e2d0c43c.tar.gz
Fix ensure_text docs. (#326)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
-rw-r--r--documentation/index.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/index.rst b/documentation/index.rst
index e2e82e3..45390b8 100644
--- a/documentation/index.rst
+++ b/documentation/index.rst
@@ -452,7 +452,7 @@ string data in all Python versions.
.. function:: ensure_text(s, encoding='utf-8', errors='strict')
Coerce *s* to :data:`text_type`. *encoding*, *errors* are the same as
- :meth:`py3:str.encode`
+ :meth:`py3:bytes.decode`
.. data:: StringIO