summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-09-01 10:44:43 (GMT)
committerGitHub <noreply@github.com>2023-09-01 10:44:43 (GMT)
commite775601ef1ada83a80e1539d0bcd5509deadee14 (patch)
tree2e0bf95380afd9a0b689833df59671abe6d169d9 /Doc/tutorial
parentb936cf4fe084474970ea43dba24386f1b08e75ce (diff)
downloadcpython-e775601ef1ada83a80e1539d0bcd5509deadee14.zip
cpython-e775601ef1ada83a80e1539d0bcd5509deadee14.tar.gz
cpython-e775601ef1ada83a80e1539d0bcd5509deadee14.tar.bz2
gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (#108746)
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/classes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 91a3b73..7b92e1a 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -276,7 +276,7 @@ definition looked like this::
then ``MyClass.i`` and ``MyClass.f`` are valid attribute references, returning
an integer and a function object, respectively. Class attributes can also be
assigned to, so you can change the value of ``MyClass.i`` by assignment.
-:attr:`__doc__` is also a valid attribute, returning the docstring belonging to
+:attr:`!__doc__` is also a valid attribute, returning the docstring belonging to
the class: ``"A simple example class"``.
Class *instantiation* uses function notation. Just pretend that the class