summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/slice.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-10-30 10:03:20 (GMT)
committerGitHub <noreply@github.com>2019-10-30 10:03:20 (GMT)
commit25fc088607c855060ed142296dc1bd0125fad1af (patch)
tree384af093a75c0d66a00da4b1d2b184e68de67211 /Doc/c-api/slice.rst
parentda6ce58dd5ac109485af45878fca6bfd265b43e9 (diff)
downloadcpython-25fc088607c855060ed142296dc1bd0125fad1af.zip
cpython-25fc088607c855060ed142296dc1bd0125fad1af.tar.gz
cpython-25fc088607c855060ed142296dc1bd0125fad1af.tar.bz2
bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950)
Replace all *NULL* with ``NULL``.
Diffstat (limited to 'Doc/c-api/slice.rst')
-rw-r--r--Doc/c-api/slice.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/slice.rst b/Doc/c-api/slice.rst
index d924308..48a58c6 100644
--- a/Doc/c-api/slice.rst
+++ b/Doc/c-api/slice.rst
@@ -14,15 +14,15 @@ Slice Objects
.. c:function:: int PySlice_Check(PyObject *ob)
- Return true if *ob* is a slice object; *ob* must not be *NULL*.
+ Return true if *ob* is a slice object; *ob* must not be ``NULL``.
.. c:function:: PyObject* PySlice_New(PyObject *start, PyObject *stop, PyObject *step)
Return a new slice object with the given values. The *start*, *stop*, and
*step* parameters are used as the values of the slice object attributes of
- the same names. Any of the values may be *NULL*, in which case the
- ``None`` will be used for the corresponding attribute. Return *NULL* if
+ the same names. Any of the values may be ``NULL``, in which case the
+ ``None`` will be used for the corresponding attribute. Return ``NULL`` if
the new object could not be allocated.