File: 0006-fix-typo.patch

package info (click to toggle)
mecab 0.996-15.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,576 kB
  • sloc: cpp: 165,232; sh: 11,439; makefile: 207; perl: 177; ansic: 148; ruby: 57; python: 55; java: 48
file content (35 lines) | stat: -rw-r--r-- 1,252 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Hideki Yamane <henrich@debian.org>
Date: Sun, 1 May 2016 23:24:46 +0900
Subject: fix typo

---
 src/dictionary.cpp | 2 +-
 src/writer.cpp     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/dictionary.cpp b/src/dictionary.cpp
index f171dd4..0ff0b05 100644
--- a/src/dictionary.cpp
+++ b/src/dictionary.cpp
@@ -466,7 +466,7 @@ bool Dictionary::compile(const Param &param,
   Darts::DoubleArray da;
   CHECK_DIE(da.build(str.size(), const_cast<char **>(&str[0]),
                      &len[0], &val[0], &progress_bar_darts) == 0)
-      << "unkown error in building double-array";
+      << "unknown error in building double-array";
 
   std::string tbuf;
   for (size_t i = 0; i < dic.size(); ++i) {
diff --git a/src/writer.cpp b/src/writer.cpp
index ed68767..0ef6975 100644
--- a/src/writer.cpp
+++ b/src/writer.cpp
@@ -60,7 +60,7 @@ bool Writer::open(const Param &param) {
       eon_format_key += "-";
       eon_format_key += ostyle;
       const std::string tmp = param.get<std::string>(node_format_key.c_str());
-      CHECK_FALSE(!tmp.empty()) << "unkown format type [" << ostyle << "]";
+      CHECK_FALSE(!tmp.empty()) << "unknown format type [" << ostyle << "]";
     }
 
     const std::string node_format2 =