summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-10-17 13:46:00 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-10-17 13:46:00 (GMT)
commit65b4b40e245bd7f9aee4702eed6f448f12921a8a (patch)
treec4e4966fc104d6e71dadadca2ff6daaa9c085372 /Doc/tutorial
parent016884cbaae5905576779f3859a3dff509429110 (diff)
parente9cf97cf20711dcede2e44b58f3ccc7d71280cc8 (diff)
downloadcpython-65b4b40e245bd7f9aee4702eed6f448f12921a8a.zip
cpython-65b4b40e245bd7f9aee4702eed6f448f12921a8a.tar.gz
cpython-65b4b40e245bd7f9aee4702eed6f448f12921a8a.tar.bz2
Merge issue #16265: Fix collapsing of code sample in tutorial.
Thanks to Yongzhi Pan from docs@
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/inputoutput.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst
index 45de518..73143be 100644
--- a/Doc/tutorial/inputoutput.rst
+++ b/Doc/tutorial/inputoutput.rst
@@ -184,7 +184,7 @@ square brackets ``'[]'`` to access the keys ::
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
>>> print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '
- 'Dcab: {0[Dcab]:d}'.format(table))
+ ... 'Dcab: {0[Dcab]:d}'.format(table))
Jack: 4098; Sjoerd: 4127; Dcab: 8637678
This could also be done by passing the table as keyword arguments with the '**'