summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2017-07-25 12:27:13 +0100
committerReuben Thomas <rrt@sc3d.org>2017-07-25 23:48:04 +0100
commiteb1bc039bdba6c57a3f403b243cd4118ae3db03c (patch)
treee79c78491660dbabdddf51f48b4eeb6b19a6514f /src
parentb870e059ba6e1ff26a6371f7fc834d3f4303f443 (diff)
downloadenchant-eb1bc039bdba6c57a3f403b243cd4118ae3db03c.tar.gz
enchant.c: improve comment
Diffstat (limited to 'src')
-rw-r--r--src/enchant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/enchant.c b/src/enchant.c
index 7581b6d..ecbbfce 100644
--- a/src/enchant.c
+++ b/src/enchant.c
@@ -227,7 +227,7 @@ tokenize_line (EnchantDict * dict, GString * line)
cur_pos = g_utf8_pointer_to_offset ((const char*)line->str, utf);
}
- /* Do not accept one or more ' at the end of the word. */
+ /* Skip backwards over any characters that can't appear at the end of a word. */
i = word->len-1;
while ((i >= 0) && !enchant_dict_is_word_character(dict, word->str[i], 2)) {
g_string_truncate (word, i);