From e53475ddd1a03d03dccec3fb79d84d277fba521c Mon Sep 17 00:00:00 2001
From: Georg Brandl <georg@python.org>
Date: Wed, 28 Sep 2005 12:53:12 +0000
Subject: bug [ 1306449 ] PyString_AsStringAndSize() return value documented
 wrong

---
 Doc/api/concrete.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index a2dabdc..b6dbc5d 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -664,8 +664,8 @@ parameter and are called with a non-string parameter.
   \var{size})}.  It must not be deallocated.  If \var{string} is a
   Unicode object, this function computes the default encoding of
   \var{string} and operates on that.  If \var{string} is not a string
-  object at all, \cfunction{PyString_AsString()} returns \NULL{} and
-  raises \exception{TypeError}.
+  object at all, \cfunction{PyString_AsStringAndSize()} returns 
+  \code{-1} and raises \exception{TypeError}.
 \end{cfuncdesc}
 
 \begin{cfuncdesc}{void}{PyString_Concat}{PyObject **string,
-- 
cgit v0.12

