summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-12-10 17:12:32 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-12-10 17:12:32 (GMT)
commit8ef9b3e527f39dad554b06a3da31b139322c752c (patch)
treee06b3e1a585aca06ce4177f24395c3b9f7307e37 /Doc/api
parent7f06187d3101acd1af8221fde8b69d96ae8655a4 (diff)
downloadcpython-8ef9b3e527f39dad554b06a3da31b139322c752c.zip
cpython-8ef9b3e527f39dad554b06a3da31b139322c752c.tar.gz
cpython-8ef9b3e527f39dad554b06a3da31b139322c752c.tar.bz2
SF bug #1082944: Incorrect docs for PyUnicode_TailMatch
* Note correct return type is int. * Note that -1 returned on failure.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/concrete.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index 001d0ad..111725f 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -1449,7 +1449,7 @@ They all return \NULL{} or \code{-1} if an exception occurs.
resulting Unicode string.
\end{cfuncdesc}
-\begin{cfuncdesc}{PyObject*}{PyUnicode_Tailmatch}{PyObject *str,
+\begin{cfuncdesc}{int}{PyUnicode_Tailmatch}{PyObject *str,
PyObject *substr,
int start,
int end,
@@ -1457,6 +1457,7 @@ They all return \NULL{} or \code{-1} if an exception occurs.
Return 1 if \var{substr} matches \var{str}[\var{start}:\var{end}] at
the given tail end (\var{direction} == -1 means to do a prefix
match, \var{direction} == 1 a suffix match), 0 otherwise.
+ Returns \code{-1} if an error occurred.
\end{cfuncdesc}
\begin{cfuncdesc}{int}{PyUnicode_Find}{PyObject *str,