summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorJuraj Bubniak <juraj.bubniak@gmail.com>2013-06-29 08:22:19 +0200
committerJuraj Bubniak <juraj.bubniak@gmail.com>2013-06-29 08:22:19 +0200
commitc51d0ec1a7a5ce64b8e1b325f3e1c79aca65ccc0 (patch)
tree4e1f92640cc10e9e7925eacf74cd76df2c9d8851 /python.html.markdown
parenta6bcf5f8d7fe60af918eea947bee7f5950a2061d (diff)
python set literals should be separated by comma
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 463556d9..2b67ab83 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -228,7 +228,7 @@ empty_set = set()
some_set = set([1,2,2,3,4]) # filled_set is now set([1, 2, 3, 4])
# Since Python 2.7, {} can be used to declare a set
-filled_set = {1 2 2 3 4} # => {1 2 3 4}
+filled_set = {1, 2, 2, 3, 4} # => {1 2 3 4}
# Add more items to a set
filled_set.add(5) # filled_set is now {1, 2, 3, 4, 5}