Skip to content

Commit df255fa

Browse files
committed
Fixed typo + formatting
1 parent 680f7d8 commit df255fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/writing/style.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Instead, use a list comprehension:
352352
four_lists = [[] for __ in xrange(4)]
353353
354354
Create a string from a list
355-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
355+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
356356

357357
A common idiom for creating strings is to use :py:meth:`str.join` on an empty
358358
string.
@@ -366,7 +366,7 @@ This will set the value of the variable *word* to 'spam'. This idiom can be
366366
applied to lists and tuples.
367367

368368
Searching for an item in a collection
369-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
369+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
370370

371371
Sometimes we need to search through a collection of things. Let's look at two
372372
options: lists and sets.
@@ -379,7 +379,7 @@ Take the following code for example:
379379
l = ['s', 'p', 'a', 'm']
380380
381381
def lookup_set(s):
382-
return 's' in d
382+
return 's' in s
383383
384384
def lookup_list(l):
385385
return 's' in l

0 commit comments

Comments
 (0)