summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-09 11:31:19 (GMT)
committerGitHub <noreply@github.com>2018-02-09 11:31:19 (GMT)
commit5bb0005f9ff768ac443924b4bb26c3818ce8dc5a (patch)
treef9a5f2ba1d855d62955e649e6054fc515f47ed70 /Doc/extending
parent23cdbfa744f0ec0e9e7575d378df4cb758691cd3 (diff)
downloadcpython-5bb0005f9ff768ac443924b4bb26c3818ce8dc5a.zip
cpython-5bb0005f9ff768ac443924b4bb26c3818ce8dc5a.tar.gz
cpython-5bb0005f9ff768ac443924b4bb26c3818ce8dc5a.tar.bz2
Make formatting of some return codes conforming to the general style. (#5587)
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 62fbdb8..d5eb7fb 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -384,8 +384,8 @@ is used to initialize an object after it's created. Unlike the new method, we
can't guarantee that the initializer is called. The initializer isn't called
when unpickling objects and it can be overridden. Our initializer accepts
arguments to provide initial values for our instance. Initializers always accept
-positional and keyword arguments. Initializers should return either 0 on
-success or -1 on error.
+positional and keyword arguments. Initializers should return either ``0`` on
+success or ``-1`` on error.
Initializers can be called multiple times. Anyone can call the :meth:`__init__`
method on our objects. For this reason, we have to be extra careful when