summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/slice.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-27 18:41:19 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-27 18:41:19 (GMT)
commit1ecf7d204dd3abb143f53851c31fefd4ef887314 (patch)
tree9cd727d732a82c41d4522b1fd405f408d4718f61 /Doc/c-api/slice.rst
parentb29cee40ee948731f239cc3a200c62ea3dbabc9f (diff)
downloadcpython-1ecf7d204dd3abb143f53851c31fefd4ef887314.zip
cpython-1ecf7d204dd3abb143f53851c31fefd4ef887314.tar.gz
cpython-1ecf7d204dd3abb143f53851c31fefd4ef887314.tar.bz2
Issue #28496: Mark up constants 0, 1 and -1 that denote return values or
special input values as literal text.
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 e157df2..a825164 100644
--- a/Doc/c-api/slice.rst
+++ b/Doc/c-api/slice.rst
@@ -32,9 +32,9 @@ Slice Objects
assuming a sequence of length *length*. Treats indices greater than
*length* as errors.
- Returns 0 on success and -1 on error with no exception set (unless one of
+ Returns ``0`` on success and ``-1`` on error with no exception set (unless one of
the indices was not :const:`None` and failed to be converted to an integer,
- in which case -1 is returned with an exception set).
+ in which case ``-1`` is returned with an exception set).
You probably do not want to use this function.
@@ -51,7 +51,7 @@ Slice Objects
of bounds indices are clipped in a manner consistent with the handling of
normal slices.
- Returns 0 on success and -1 on error with exception set.
+ Returns ``0`` on success and ``-1`` on error with exception set.
.. versionchanged:: 3.2
The parameter type for the *slice* parameter was ``PySliceObject*``