SF bug #1082944: Incorrect docs for PyUnicode_TailMatch
* Note correct return type is int. * Note that -1 returned on failure.
This commit is contained in:
parent
7f06187d31
commit
8ef9b3e527
|
@ -1449,7 +1449,7 @@ They all return \NULL{} or \code{-1} if an exception occurs.
|
||||||
resulting Unicode string.
|
resulting Unicode string.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{PyObject*}{PyUnicode_Tailmatch}{PyObject *str,
|
\begin{cfuncdesc}{int}{PyUnicode_Tailmatch}{PyObject *str,
|
||||||
PyObject *substr,
|
PyObject *substr,
|
||||||
int start,
|
int start,
|
||||||
int end,
|
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
|
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
|
the given tail end (\var{direction} == -1 means to do a prefix
|
||||||
match, \var{direction} == 1 a suffix match), 0 otherwise.
|
match, \var{direction} == 1 a suffix match), 0 otherwise.
|
||||||
|
Returns \code{-1} if an error occurred.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{int}{PyUnicode_Find}{PyObject *str,
|
\begin{cfuncdesc}{int}{PyUnicode_Find}{PyObject *str,
|
||||||
|
|
Loading…
Reference in New Issue