Skip to content

Commit 32d1e7b

Browse files
committed
Merge pull request gregmalcolm#89 from adamchainz/master
Fix some spelling mistakes
2 parents b8fd33a + aeae3fd commit 32d1e7b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

python2/koans/about_iteration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test_use_pass_for_iterations_with_no_body(self):
9494
# ------------------------------------------------------------------
9595

9696
def test_all_iteration_methods_work_on_any_sequence_not_just_lists(self):
97-
# Ranges are an iteratable sequence
97+
# Ranges are an iterable sequence
9898
result = map(self.add_ten, range(1, 4))
9999
self.assertEqual(__, list(result))
100100

python2/koans/about_regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_matching_literal_text_how_many(self):
3030
"""
3131
Lesson 1 -- How many matches?
3232
33-
The default behaviour of most regular extression engines is
33+
The default behaviour of most regular expression engines is
3434
to return just the first match. In python you have the
3535
following options:
3636

python3/koans/about_comprehension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_double_list_comprehension(self):
4646
def test_creating_a_set_with_set_comprehension(self):
4747
comprehension = { x for x in 'aabbbcccc'}
4848

49-
self.assertEqual(__, comprehension) # remeber that set members are unique
49+
self.assertEqual(__, comprehension) # remember that set members are unique
5050

5151
def test_creating_a_dictionary_with_dictionary_comprehension(self):
5252
dict_of_weapons = {'first': 'fear', 'second': 'surprise',

python3/koans/about_iteration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_map_transforms_elements_of_a_list(self):
4141

4242
self.assertNotEqual(list, mapping.__class__)
4343
self.assertEqual(__, mapping.__class__)
44-
# In Python 3 built in iterator funcs return iteratable view objects
44+
# In Python 3 built in iterator funcs return iterable view objects
4545
# instead of lists
4646

4747
for item in mapping:
@@ -116,7 +116,7 @@ def test_use_pass_for_iterations_with_no_body(self):
116116
# ------------------------------------------------------------------
117117

118118
def test_all_iteration_methods_work_on_any_sequence_not_just_lists(self):
119-
# Ranges are an iteratable sequence
119+
# Ranges are an iterable sequence
120120
result = map(self.add_ten, range(1,4))
121121
self.assertEqual(__, list(result))
122122

python3/koans/about_regex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_matching_literal_text_how_many(self):
2222
"""
2323
Lesson 1 How many matches?
2424
25-
The default behaviour of most regular extression engines is to return just the first match.
25+
The default behaviour of most regular expression engines is to return just the first match.
2626
In python you have the next options:
2727
2828
match() --> Determine if the RE matches at the beginning of the string.
@@ -92,7 +92,7 @@ def test_matching_set_character(self):
9292
def test_anything_but_matching(self):
9393
"""
9494
Lesson 2 Using character set ranges
95-
Occsionally, you'll want a list of characters that you don't want to match.
95+
Occasionally, you'll want a list of characters that you don't want to match.
9696
Character sets can be negated using the ^ metacharacter.
9797
9898
"""

0 commit comments

Comments
 (0)