From 9072b68de4440cec7d5df095048e34b54a287686 Mon Sep 17 00:00:00 2001 From: kuyan Date: Tue, 30 Jul 2013 13:39:51 -0700 Subject: [PATCH] more code tags. --- 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 d788a08..465097b 100644 --- a/docs/writing/structure.rst +++ b/docs/writing/structure.rst @@ -448,10 +448,10 @@ with calls to ``append()``. nums = [str(n) for n in range(20)] print "".join(nums) -One final thing to mention about strings is that using join() is not always +One final thing to mention about strings is that using ``join()`` is not always best. In the instances where you are creating a new string from a pre-determined number of strings, using the addition operator is actually faster, but in cases -like above or in cases where you are adding to an existing string, using join() +like above or in cases where you are adding to an existing string, using ``join()`` should be your preferred method. .. code-block:: python