From a5bb7aab524f4edb986d33e4a47975a8e2d0c43c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrzej=20Bartosi=C5=84ski?=
 <Neob91@users.noreply.github.com>
Date: Fri, 10 Apr 2020 02:59:23 +0200
Subject: [PATCH] Fix ensure_text docs. (#326)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
---
 documentation/index.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/documentation/index.rst b/documentation/index.rst
index e2e82e3df..45390b81b 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