Skip to content

Commit 61f9698

Browse files
committed
training: Fix typos in comments (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent b9365cd commit 61f9698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

training/validate_grapheme.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ bool ValidateGrapheme::IsBadlyFormed(char32 prev_ch, char32 ch) {
8181
// for examples in Devanagari). The Unicode standard discourages specifying
8282
// vowels this way, but they are sometimes encountered in text, probably because
8383
// some editors still permit it. Renderers however dislike such pairs, and so
84-
// this function may be used to detect their occurence for removal.
84+
// this function may be used to detect their occurrence for removal.
8585
// TODO(rays) This function only covers a subset of Indic languages and doesn't
8686
// include all rules. Add rules as appropriate to support other languages or
8787
// find a way to generalize these existing rules that makes use of the
@@ -164,7 +164,7 @@ bool ValidateGrapheme::IsBadlyFormedThai(char32 prev_ch, char32 ch) {
164164
prev_ch == 0xe37)) {
165165
return true;
166166
}
167-
// Dont allow the standalone vowel U+0e24 to be followed by other vowels.
167+
// Don't allow the standalone vowel U+0e24 to be followed by other vowels.
168168
if ((0xe30 <= ch && ch <= 0xe4D) && prev_ch == 0xe24) {
169169
return true;
170170
}

0 commit comments

Comments
 (0)