summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-25 13:55:43 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-25 13:55:43 +0800
commit4d596ce01a4041d01e090211b850544a379b2abe (patch)
tree26e54804afe6b0370e20ab0fa13c1af17e07a7e9
parent819d3edf26adb53cf2507af4868e75feac21a166 (diff)
downloadlibpinyin-4d596ce01a4041d01e090211b850544a379b2abe.zip
libpinyin-4d596ce01a4041d01e090211b850544a379b2abe.tar.gz
libpinyin-4d596ce01a4041d01e090211b850544a379b2abe.tar.xz
update comments
-rw-r--r--src/pinyin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index e880bb1..ab0f466 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -344,7 +344,7 @@ bool pinyin_iterator_add_phrase(import_iterator_t * iter,
g_array_free(tokenarray, TRUE);
PhraseItem item;
- /* check whether it exists in the same sub phrase; */
+ /* check whether it exists in the same sub phrase index; */
if (null_token != token &&
PHRASE_INDEX_LIBRARY_INDEX(token) == iter->m_phrase_index) {
/* if so, remove the phrase, add the pinyin for the phrase item,
@@ -370,7 +370,7 @@ bool pinyin_iterator_add_phrase(import_iterator_t * iter,
result = true;
}
} else {
- /* if not exists in the sub phrase index,
+ /* if not exists in the same sub phrase index,
get the maximum token,
then add it directly with maximum token + 1; */
PhraseIndexRange range;