Skip to content

Commit 66ee68d

Browse files
srl295rc-swag
andauthored
Apply suggestions from code review
Co-authored-by: rc-swag <[email protected]>
1 parent c23303e commit 66ee68d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/ldml/ldml_processor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ ldml_processor::process_event(
300300
ctxtstr.pop_back();
301301
ctxtstr.pop_back();
302302
ctxtstr.pop_back();
303-
// push a special backsapce to delete the marker
303+
// push a special backspace to delete the marker
304304
state->actions().push_backspace(KM_KBP_BT_MARKER, c->marker);
305305
}
306306
}
@@ -399,7 +399,6 @@ ldml_processor::context_to_string(km_kbp_state *state, std::u32string &str) {
399399
str.clear();
400400
auto &cp = state->context();
401401
size_t ctxlen = 0; // TODO-LDML: is this needed?
402-
// We're only interested in as much of the context as is a KM_KBP_BT_CHAR.
403402
uint8_t last_type = KM_KBP_BT_UNKNOWN;
404403
for (auto c = cp.rbegin(); c != cp.rend(); c++, ctxlen++) {
405404
last_type = c->type;

0 commit comments

Comments
 (0)