Skip to content

Commit 8e1f67e

Browse files
Fix minor typos in code comments
1 parent 1b2be12 commit 8e1f67e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

email_validator/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def main(dns_resolver: Optional[_Resolver] = None) -> None:
3838
options[varname.lower()] = float(os.environ[varname])
3939

4040
if len(sys.argv) == 1:
41-
# Validate the email addresses pased line-by-line on STDIN.
41+
# Validate the email addresses passed line-by-line on STDIN.
4242
dns_resolver = dns_resolver or caching_resolver()
4343
for line in sys.stdin:
4444
email = line.strip()

email_validator/syntax.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def split_string_at_unquoted_special(text: str, specials: Tuple[str, ...]) -> Tu
5757
for i, c in enumerate(text):
5858
# < plus U+0338 (Combining Long Solidus Overlay) normalizes to
5959
# ≮ U+226E (Not Less-Than), and it would be confusing to treat
60-
# the < as the start of "<email>" syntax in that case. Liekwise,
60+
# the < as the start of "<email>" syntax in that case. Likewise,
6161
# if anything combines with an @ or ", we should probably not
6262
# treat it as a special character.
6363
if unicodedata.normalize("NFC", text[i:])[0] != c:
@@ -642,7 +642,7 @@ def validate_email_length(addrinfo: ValidatedEmail) -> None:
642642
# form is checked first because it is the original input.
643643
# 2) The normalized email address. We perform Unicode NFC normalization of
644644
# the local part, we normalize the domain to internationalized characters
645-
# (if originaly IDNA ASCII) which also includes Unicode normalization,
645+
# (if originally IDNA ASCII) which also includes Unicode normalization,
646646
# and we may remove quotes in quoted local parts. We recommend that
647647
# callers use this string, so it must be valid.
648648
# 3) The email address with the IDNA ASCII representation of the domain

0 commit comments

Comments
 (0)