Skip to content

Commit

Permalink
Fix typos (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng authored Dec 8, 2022
1 parent 10a5feb commit c3caa5f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions data/scripts/sort_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
print(("Usage: ", sys.argv[0], "[directory]"))
exit(1)

dirtectory = sys.argv[1]
files = glob.glob(dirtectory + "/*")
directory = sys.argv[1]
files = glob.glob(directory + "/*")
for filename in files:
print(filename)
sort_items(filename, filename)
4 changes: 2 additions & 2 deletions doc/opencc.doxy.in
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ HTML_STYLESHEET =
# user-defined cascading style sheet that is included after the standard
# style sheets created by doxygen. Using this option one can overrule
# certain style aspects. This is preferred over using HTML_STYLESHEET
# since it does not replace the standard style sheet and is therefor more
# since it does not replace the standard style sheet and is therefore more
# robust against future updates. Doxygen will copy the style sheet file to
# the output directory.

Expand Down Expand Up @@ -1707,7 +1707,7 @@ UML_LOOK = NO
# the class node. If there are many fields or methods and many nodes the
# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS
# threshold limits the number of items for each type to make the size more
# managable. Set this to 0 for no limit. Note that the threshold may be
# manageable. Set this to 0 for no limit. Note that the threshold may be
# exceeded by 50% before the limit is enforced.

UML_LIMIT_NUM_FIELDS = 10
Expand Down
4 changes: 2 additions & 2 deletions src/SimpleConverter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class OPENCC_EXPORT SimpleConverter {

/**
* Converts a text and writes to an allocated buffer
* Please make sure the buffer has sufficent space.
* Please make sure the buffer has sufficient space.
* @param input A C-Style std::string (terminated by '\0') to be converted.
* @param output Buffer to write the converted text.
* @return Length of converted text.
Expand All @@ -75,7 +75,7 @@ class OPENCC_EXPORT SimpleConverter {

/**
* Converts a text and writes to an allocated buffer
* Please make sure the buffer has sufficent space.
* Please make sure the buffer has sufficient space.
* @param input A C-Style std::string limited by a given length to be
* converted.
* @param length Maximal length in byte of the input std::string.
Expand Down
2 changes: 1 addition & 1 deletion src/UTF8Util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class OPENCC_EXPORT UTF8Util {
}

/**
* Returns ture if the character is a line ending or end of file.
* Returns true if the character is a line ending or end of file.
*/
static bool IsLineEndingOrFileEnding(const char ch) {
return ch == '\0' || ch == '\n' || ch == '\r';
Expand Down

0 comments on commit c3caa5f

Please sign in to comment.