File: 0003-Fix-some-spelling-errors.patch

package info (click to toggle)
fcitx 1%3A4.2.9.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,800 kB
  • sloc: ansic: 134,151; cpp: 7,280; sh: 2,778; python: 800; xml: 345; makefile: 42
file content (44 lines) | stat: -rw-r--r-- 1,907 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
36
37
38
39
40
41
42
43
44
From: Boyuan Yang <073plan@gmail.com>
Date: Thu, 1 Feb 2018 18:00:41 +0800
Subject: Fix some spelling errors

---
 Doxyfile.in              | 2 +-
 src/module/lua/luawrap.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Doxyfile.in b/Doxyfile.in
index 4b0f7c2..8ca1bba 100644
--- a/Doxyfile.in
+++ b/Doxyfile.in
@@ -281,7 +281,7 @@ TYPEDEF_HIDES_STRUCT   = NO
 # causing a significant performance penality.
 # If the system has enough physical memory increasing the cache will improve the
 # performance by keeping more symbols in memory. Note that the value works on
-# a logarithmic scale so increasing the size by one will rougly double the
+# a logarithmic scale so increasing the size by one will roughly double the
 # memory usage. The cache size is given by this formula:
 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
 # corresponding to a cache size of 2^16 = 65536 symbols
diff --git a/src/module/lua/luawrap.c b/src/module/lua/luawrap.c
index d9452a7..6a6f158 100644
--- a/src/module/lua/luawrap.c
+++ b/src/module/lua/luawrap.c
@@ -166,7 +166,7 @@ static int FcitxLog_Export(lua_State *lua) {
 static int ImeRegisterCommand_Export(lua_State *lua) {
     int c = lua_gettop(lua);
     if (c < 2) {
-        FcitxLog(WARNING, "register command arugment missing");
+        FcitxLog(WARNING, "register command argument missing");
         return 0;
     }
     const char *command_name = lua_tostring(lua, 1);
@@ -194,7 +194,7 @@ static int ImeRegisterTrigger_Export(lua_State *lua) {
     if (c >= kFunctionNameArg) {
         function_name = lua_tostring(lua, kFunctionNameArg);
         if (function_name == NULL || function_name[0] == 0) {
-            FcitxLog(WARNING, "register trigger arugment function_name empty");
+            FcitxLog(WARNING, "register trigger argument function_name empty");
             return 0;
         }
     }