diff Doc/api/exceptions.tex @ 22483:0f1ae37cd8eb legacy-trunk

Fix example for PyErr_SetFromErrno() (need to pass exception type).
author Neil Schemenauer <nascheme@enme.ucalgary.ca>
date Sat, 23 Mar 2002 20:57:11 +0000
parents 73384e13bd2a
children da1645fd9c24
line wrap: on
line diff
--- a/Doc/api/exceptions.tex	Sat Mar 23 20:46:35 2002 +0000
+++ b/Doc/api/exceptions.tex	Sat Mar 23 20:57:11 2002 +0000
@@ -178,8 +178,8 @@
   \cfunction{PyErr_CheckSignals()}, and if that set the error
   indicator, leaves it set to that.  The function always returns
   \NULL, so a wrapper function around a system call can write
-  \samp{return PyErr_SetFromErrno();} when  the system call returns an
-  error.
+  \samp{return PyErr_SetFromErrno(\var{type});} when the system call
+  returns an error.
 \end{cfuncdesc}
 
 \begin{cfuncdesc}{PyObject*}{PyErr_SetFromErrnoWithFilename}{PyObject *type,