aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 0d8b00d09..a4bee0a08 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1163,7 +1163,7 @@ size_t Document::SafeSegment(std::string_view text) const noexcept {
it = text.end() - 1;
if (dbcsCodePage) {
- // for UTF-8 go back the start of last character.
+ // for UTF-8 go back to the start of last character.
for (int trail = 0; trail < UTF8MaxBytes - 1 && UTF8IsTrailByte(*it); trail++) {
--it;
}