summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorKatherineMichel <kthrnmichel@gmail.com>2017-06-10 20:33:57 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-06-10 20:33:57 (GMT)
commit865ed9ea67cf0d8a8dead91f3eac527553d92284 (patch)
treef83e34444e10a5c82f639715c46e27189424735c /Doc/tutorial
parent76eabd3a21dc578de6093d45dd8d69a5ec4b9afe (diff)
downloadcpython-865ed9ea67cf0d8a8dead91f3eac527553d92284.zip
cpython-865ed9ea67cf0d8a8dead91f3eac527553d92284.tar.gz
cpython-865ed9ea67cf0d8a8dead91f3eac527553d92284.tar.bz2
bpo-30312: Small correction in datastructures set code sample (GH-2081) (GH-2085)
(cherry picked from commit ca816153445cba3baec15f7e890c71abfe495340)
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/datastructures.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index 1a73ac9..f9ddf06 100644
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -466,7 +466,7 @@ Here is a brief demonstration::
{'a', 'r', 'b', 'c', 'd'}
>>> a - b # letters in a but not in b
{'r', 'd', 'b'}
- >>> a | b # letters in either a or b
+ >>> a | b # letters in a or b or both
{'a', 'c', 'r', 'd', 'b', 'm', 'z', 'l'}
>>> a & b # letters in both a and b
{'a', 'c'}