From 65c8a8ccd712ff27b7f4f7825d29677eb20e66d5 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 13 Nov 2017 16:18:22 -0800 Subject: [PATCH] Update structure.rst - fix indentation bug --- docs/writing/structure.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/writing/structure.rst b/docs/writing/structure.rst index 874f5f367..befe0277b 100644 --- a/docs/writing/structure.rst +++ b/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**