]> granicus.if.org Git - python/commitdiff
Fix some doc problems.
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 10 Aug 2007 05:05:23 +0000 (05:05 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 10 Aug 2007 05:05:23 +0000 (05:05 +0000)
Doc/api/concrete.tex
Doc/api/utilities.tex

index 4dc3f4c0d8988c5662a4ec528a009cfb44e30f16..ddb19d07061896c3d5c12d854981b7801f13c674 100644 (file)
@@ -1013,7 +1013,7 @@ use these APIs:
    Create a Unicode object from an UTF-8 encoded null-terminated
    char buffer \var{u}.
    \versionadded{3.0}
-\end{funcdesc}
+\end{cfuncdesc}
 
 \begin{cfuncdesc}{PyObject*}{PyUnicode_FromFormat}{const char *format, ...}
   Take a C \cfunction{printf()}-style \var{format} string and a
index 961f20045938bbcc23fed91fdab00789a2f42232..037c087b096fdb63b1278bfa827db3e93fcd955a 100644 (file)
@@ -429,7 +429,7 @@ whose address should be passed.
 
   \item[\samp{y\#} (bytes object)
   {[const char *, int]}]
-  This variant on \samp{s#} stores into two C variables, the first one
+  This variant on \samp{s\#} stores into two C variables, the first one
   a pointer to a character string, the second one its length.  This only
   accepts bytes objects.
 
@@ -974,7 +974,7 @@ behavior in corner cases, which the Standard C functions do not.
 
 The wrappers ensure that \var{str}[\var{size}-1] is always
 \character{\textbackslash0} upon return. They never write more than
-\var{size} bytes (including the trailing \character{\textbackslash0}
+\var{size} bytes (including the trailing \character{\textbackslash0})
 into str. Both functions require that \code{\var{str} != NULL},
 \code{\var{size} > 0} and \code{\var{format} != NULL}.