summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/classes.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 33171cd..b4f09c2 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -180,7 +180,9 @@ binding::
scope_test()
print("In global scope:", spam)
-The output of the example code is::
+The output of the example code is:
+
+.. code-block:: none
After local assignment: test spam
After nonlocal assignment: nonlocal spam