summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-05-27 14:51:43 +0800
committerPeng Wu <alexepico@gmail.com>2016-05-27 14:51:43 +0800
commitd19f0972c28cb78804048ada20501681d0074d97 (patch)
treede6d444bd7b947e5df7628c81b385d5355848562
parentb6f4c32f5e8f40119537986de35d855f117cfc89 (diff)
downloadlibpinyin-d19f0972c28cb78804048ada20501681d0074d97.tar.gz
libpinyin-d19f0972c28cb78804048ada20501681d0074d97.tar.xz
libpinyin-d19f0972c28cb78804048ada20501681d0074d97.zip
update comment
-rw-r--r--src/lookup/pinyin_lookup2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lookup/pinyin_lookup2.cpp b/src/lookup/pinyin_lookup2.cpp
index 93059ec..b5ceb86 100644
--- a/src/lookup/pinyin_lookup2.cpp
+++ b/src/lookup/pinyin_lookup2.cpp
@@ -555,7 +555,7 @@ bool PinyinLookup2::train_result2(PhoneticKeyMatrix * matrix,
bool train_next = false;
phrase_token_t last_token = sentence_start;
- /* constraints->len + 1 == results->len */
+
for (size_t i = 0; i < constraints->len; ++i) {
phrase_token_t token = g_array_index(results, phrase_token_t, i);
if (null_token == token)