summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Position.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-01 10:01:11 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-01 10:01:11 +0200
commit12a42edd13f6bd2def0ff045389ab289fbcb0b83 (patch)
tree9f3d082658ba039879a8ecfc81bb870f05ba611f /Userland/Libraries/LibWeb/DOM/Position.cpp
parenta8ae8b24deab52e851381c4385c316c57ce47d6a (diff)
downloadserenity-12a42edd13f6bd2def0ff045389ab289fbcb0b83.zip
Everywhere: codepoint => code point
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Position.cpp')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Position.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Position.cpp b/Userland/Libraries/LibWeb/DOM/Position.cpp
index 155e94ecbe..e4dc8cd67c 100644
--- a/Userland/Libraries/LibWeb/DOM/Position.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Position.cpp
@@ -39,7 +39,7 @@ bool Position::increment_offset()
for (auto iterator = text.begin(); !iterator.done(); ++iterator) {
if (text.byte_offset_of(iterator) >= m_offset) {
- // NOTE: If the current offset is inside a multi-byte codepoint, it will be moved to the start of the next codepoint.
+ // NOTE: If the current offset is inside a multi-byte code point, it will be moved to the start of the next code point.
m_offset = text.byte_offset_of(++iterator);
return true;
}
@@ -66,7 +66,7 @@ bool Position::decrement_offset()
last_smaller_offset = text.byte_offset_of(iterator);
}
- // NOTE: If the current offset is inside a multi-byte codepoint, it will be moved to the start of that codepoint.
+ // NOTE: If the current offset is inside a multi-byte code point, it will be moved to the start of that code point.
m_offset = last_smaller_offset;
return true;
}