Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
#codehealth

PiperOrigin-RevId: 585552975
  • Loading branch information
hiroyuki-komatsu committed Nov 27, 2023
1 parent 4b0836a commit a8a92b8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ios/ios_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ std::unique_ptr<EngineInterface> CreateMobileEngine(
auto engine = Engine::CreateMobileEngine(*std::move(data_manager));
if (!engine.ok()) {
LOG(ERROR) << "Failed to create an engine: " << engine.status()
<< ". Faillback to MinimalEngine";
<< ". Fallback to MinimalEngine";
return std::make_unique<MinimalEngine>();
}
return *std::move(engine);
Expand Down
4 changes: 2 additions & 2 deletions src/prediction/user_history_predictor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1388,12 +1388,12 @@ bool UserHistoryPredictor::InsertCandidates(RequestType request_type,
is_valid_candidate = true;
} else if (request.request_type() == ConversionRequest::SUGGESTION) {
// The top result of suggestion should be a VALID suggestion candidate.
// i.e., SuggestionTrigerFunc should return true for the first
// i.e., SuggestionTriggerFunc should return true for the first
// candidate.
// If user types "デスノート" too many times, "デスノート" will be
// suggested when user types "で". It is expected, but if user types
// "です" after that, showing "デスノート" is annoying.
// In this situation, "です" is in the LRU, but SuggestionTrigerFunc
// In this situation, "です" is in the LRU, but SuggestionTriggerFunc
// returns false for "です", since it is short.
if (IsValidSuggestion(request_type, input_key_len, *result_entry)) {
is_valid_candidate = true;
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/commands.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ message Input {
}
message TouchPosition {
optional TouchAction action = 1;
// x, y potision: keyboad left-top is (0, 0), right-bottom is (1, 1).
// x, y potision: keyboard left-top is (0, 0), right-bottom is (1, 1).
optional float x = 2;
optional float y = 3;
// timestamp (in ms) is set to zero when the touch event starts.
Expand Down
2 changes: 1 addition & 1 deletion src/rewriter/rewriter_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class RewriterInterface {
ALL = (1 | 2 | 4),
};

// Returns capablity of this rewriter.
// Returns capability of this rewriter.
// If (capability() & CONVERSION), this rewriter
// is called after StartConversion().
virtual int capability(const ConversionRequest &request) const {
Expand Down
2 changes: 1 addition & 1 deletion src/rewriter/user_dictionary_rewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace mozc {

// User-dictionary candidates are not always placed at the top.
// Since user expects that user-dictionary candidates may appear
// on the top, we simply move user-dictoinary-candidate just
// on the top, we simply move user-dictionary-candidate just
// "after" the top candidate.
bool UserDictionaryRewriter::Rewrite(const ConversionRequest &request,
Segments *segments) const {
Expand Down
2 changes: 1 addition & 1 deletion src/session/session_converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class SessionConverter : public SessionConverterInterface {
const commands::Context &context,
size_t *consumed_key_size) override;

// Does allmost the same thing as CommitFirstSegment.
// Does almost the same thing as CommitFirstSegment.
// The only difference is to fix the segments from the head to the focused.
void CommitHeadToFocusedSegments(const composer::Composer &composer,
const commands::Context &context,
Expand Down

0 comments on commit a8a92b8

Please sign in to comment.