Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
czchen committed Mar 10, 2015
1 parent 64d7821 commit f6c8aeb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions doc/libchewing.texi
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ enumerate.
@end deftypefun

@deftypefun char* chewing_kbtype_String (ChewingContext *@var{ctx})
This function returns the current enumerated keyboard layout name. The returnd
This function returns the current enumerated keyboard layout name. The returned
string is emtpy string when enumeration is over. This function returns
@code{NULL} when no memory.

Expand All @@ -500,7 +500,7 @@ The returned value is a pointer to a character string. The memory
@end deftypefun

@deftypefun char* chewing_kbtype_String_static (ChewingContext *@var{ctx})
This function returns the current enumerated keyboard layout name. The returnd
This function returns the current enumerated keyboard layout name. The returned
string is emtpy string when enumeration is over.

The return value is a const pointer to a character string. The memory will
Expand Down
2 changes: 1 addition & 1 deletion include/internal/chewing-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ typedef struct AvailInfo {
/** @brief phone id. */
const TreeType *id;
} avail[MAX_PHRASE_LEN];
/** @brief total number of availble lengths. */
/** @brief total number of available lengths. */
int nAvail;
/** @brief the current choosing available length. */
int currentAvail;
Expand Down
2 changes: 1 addition & 1 deletion src/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static int PhoneSeqTheSame(const uint16_t p1[], const uint16_t p2[])
{
int i;

if (!p1 || !p2) /* FIXME: should not happend. */
if (!p1 || !p2) /* FIXME: should not happened. */
return 0;

for (i = 0; (p1[i] != 0 && p2[i] != 0); i++) {
Expand Down
4 changes: 2 additions & 2 deletions src/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static void internal_release_Phrase(UsedPhraseMode mode, Phrase *pUser, Phrase *
if (pUser != NULL)
free(pUser);
break;
default: /* In fact, it is alwyas 0 */
default: /* In fact, it is always 0 */
if (pDict != NULL)
free(pDict);
if (pUser != NULL)
Expand Down Expand Up @@ -430,7 +430,7 @@ static int CompRecord(const RecordNode **pa, const RecordNode **pb)
*
* Example:
* 國民大會 has three interval: 國民, 大會, 國民大會. This function removes
* 國名, 大會 becasue 國民大會 contains 國民 and 大會.
* 國名, 大會 because 國民大會 contains 國民 and 大會.
*/
static void Discard1(TreeDataType *ptd)
{
Expand Down
2 changes: 1 addition & 1 deletion src/userphrase-hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "userphrase-private.h"
#include "private.h"

/* load the orginal frequency from the static dict */
/* load the original frequency from the static dict */
static int LoadOriginalFreq(ChewingData *pgdata, const uint16_t phoneSeq[], const char wordSeq[], int len)
{
const TreeType *tree_pos;
Expand Down
2 changes: 1 addition & 1 deletion src/userphrase-sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static int UserBindPhone(ChewingData *pgdata, int index, const uint16_t phoneSeq
}


/* load the orginal frequency from the static dict */
/* load the original frequency from the static dict */
static int LoadOriginalFreq(ChewingData *pgdata, const uint16_t phoneSeq[], const char wordSeq[], int len)
{
const TreeType *tree_pos;
Expand Down

0 comments on commit f6c8aeb

Please sign in to comment.