Skip to content

Commit 20c2bb6

Browse files
committed
Merge pull request gregmalcolm#20 from mikelietz/patch-2
Call 'a' global method, not 'an' global method. Python3 had it right.
2 parents 6c40dd2 + 20811df commit 20c2bb6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python2/koans/about_methods.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def my_global_function(a, b):
1313

1414

1515
class AboutMethods(Koan):
16-
def test_calling_an_global_function(self):
16+
def test_calling_a_global_function(self):
1717
self.assertEqual(__, my_global_function(2, 3))
1818

1919
# NOTE: Wrong number of arguments is not a SYNTAX error, but a
@@ -113,8 +113,7 @@ def test_pass_does_nothing_at_all(self):
113113

114114
# ------------------------------------------------------------------
115115

116-
def one_line_method(self):
117-
return 'Madagascar'
116+
def one_line_method(self): return 'Madagascar'
118117

119118
def test_no_indentation_required_for_one_line_statement_bodies(self):
120119
self.assertEqual(__, self.one_line_method())

0 commit comments

Comments
 (0)