Permalink
Browse files

Merge pull request #858 from j127/patch-1

Update structure.rst - fix indentation bug
2 parents 0502ad1 + 65c8a8c commit 8603dfe3cf5fd489aa20a3cfc6297bf960920197 @kennethreitz committed Nov 14, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/writing/structure.rst
@@ -811,7 +811,7 @@ The map function can be even faster than a list comprehension in some cases.
# create a concatenated string from 0 to 19 (e.g. "012..1819")
nums = ""
for n in range(20):
- nums += str(n) # slow and inefficient
+ nums += str(n) # slow and inefficient
print nums
**Good**
@@ -821,7 +821,7 @@ The map function can be even faster than a list comprehension in some cases.
# create a concatenated string from 0 to 19 (e.g. "012..1819")
nums = []
for n in range(20):
- nums.append(str(n))
+ nums.append(str(n))
print "".join(nums) # much more efficient
**Better**

0 comments on commit 8603dfe

Please sign in to comment.