Skip to content

Commit bd43724

Browse files
Update check_anagram.nim, fixing grammar
By Grammarly
1 parent 5ffa244 commit bd43724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strings/check_anagram.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
## - They are not the same word (a word is not an anagram of itself).
1010
##
1111
## A word is any string of characters `{'A'..'Z', 'a'..'z'}`. Other characters,
12-
## including whitespace, numbers and punctuation, are considered invalid and
12+
## including whitespace, numbers, and punctuation, are considered invalid and
1313
## raise a `ValueError` exception.
1414
##
1515
## Note: Generate full doc with `nim doc --docinternal check_anagram.nim`
@@ -56,7 +56,7 @@ func toLowerUnchecked(c: char): char {.inline.} =
5656
assert c in UpperAlpha
5757
# The difference between numerical values for chars of uppercase and
5858
# lowercase alphabets in the ASCII table is 32. Uppercase letters start from
59-
# 0b100_0001, so setting the sixth bit to 1 gives letter's lowercase pair.
59+
# 0b100_0001, so setting the sixth bit to 1 gives the letter's lowercase pair.
6060
char(uint8(c) or 0b0010_0000'u8)
6161

6262
template normalizeChar(c: char) =

0 commit comments

Comments
 (0)