summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-10-09 14:10:17 +0800
committerPeng Wu <alexepico@gmail.com>2015-10-09 14:10:17 +0800
commit77c17bd843c37cb1141e85a45013bdea4d87bdb4 (patch)
tree5dac1d5027b45ead6ed261bb0951cbcf15ed19af /utils
parentf10e7058309e99efe02807ff92974c8a8f13d84a (diff)
downloadlibpinyin-77c17bd843c37cb1141e85a45013bdea4d87bdb4.zip
libpinyin-77c17bd843c37cb1141e85a45013bdea4d87bdb4.tar.gz
libpinyin-77c17bd843c37cb1141e85a45013bdea4d87bdb4.tar.xz
fixes a typo
Diffstat (limited to 'utils')
-rw-r--r--utils/storage/gen_pinyin_table.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/storage/gen_pinyin_table.cpp b/utils/storage/gen_pinyin_table.cpp
index d900e74..4b7073e 100644
--- a/utils/storage/gen_pinyin_table.cpp
+++ b/utils/storage/gen_pinyin_table.cpp
@@ -312,10 +312,10 @@ void gen_phrase_file(const char * outputfile, int phrase_index){
guint32 freq = chewing_and_freq->freq;
- /* avoid zero freq */
+ /* avoid zero freq. */
if (freq < 3) freq = 3;
- fprintf(outfile, "%s\t%s\t%d\t%d\n",
+ fprintf(outfile, "%s\t%s\t%d\t%d\n",
pinyin_str, phrase_str,
PHRASE_INDEX_MAKE_TOKEN(phrase_index, token), freq);