Skip to content

Commit 1aa55b6

Browse files
Merge pull request #19 from awesomebytes/patch-2
Fix typos
2 parents 311d468 + 007694b commit 1aa55b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/palindrome.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ inline bool IsPalindromeWord(const std::string& str)
7070
const size_t N_words = (N_half / S);
7171
7272
// example: if N = 18, half string is 9 bytes and
73-
// we need to compair 2 pairs of words and 1 pair of chars
73+
// we need to compare 2 pairs of words and 1 pair of chars
7474
7575
size_t index = 0;
7676
@@ -133,4 +133,4 @@ Actually, for very long strings, we might use words of 128 or 256 bits. This can
133133
134134
This is **not** a good example of "keep your code simple and readable, don't worry too much about optimizations".
135135
136-
I am mostly showing this for fun and to highlight that in **some** cases the cost of branches in our code can we non-negelgible and it might open the opportunity for some cool optimizations.
136+
I am mostly showing this for fun and to highlight that in **some** cases the cost of branches in our code can we non-negligible and it might open the opportunity for some cool optimizations.

0 commit comments

Comments
 (0)