Skip to content

Commit a94c621

Browse files
authored
Fix spellings (TheAlgorithms#5710)
1 parent 99983c9 commit a94c621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strings/credit_card_validator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def validate_credit_card_number(credit_card_number: str) -> bool:
7171
36111111111111 is an invalid credit card number because of its first two digits.
7272
False
7373
>>> validate_credit_card_number('41111111111111')
74-
41111111111111 is an invalid credit card number because it fails the Lhun check.
74+
41111111111111 is an invalid credit card number because it fails the Luhn check.
7575
False
7676
"""
7777
error_message = f"{credit_card_number} is an invalid credit card number because"
@@ -88,7 +88,7 @@ def validate_credit_card_number(credit_card_number: str) -> bool:
8888
return False
8989

9090
if not luhn_validation(credit_card_number):
91-
print(f"{error_message} it fails the Lhun check.")
91+
print(f"{error_message} it fails the Luhn check.")
9292
return False
9393

9494
print(f"{credit_card_number} is a valid credit card number.")

0 commit comments

Comments
 (0)