summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-12 13:24:45 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-12 13:24:45 +0200
commitdc65f54c065364225f0113a9339af72735547779 (patch)
tree60a8b9d37c6236748bfa310a564150d688595183 /Userland/Libraries/LibWeb/HTML/SyntaxHighlighter
parent7e1bffdeb85c832c7cea1a71e2c9e9ebe7ff96ae (diff)
downloadserenity-dc65f54c065364225f0113a9339af72735547779.zip
AK: Rename Vector::append(Vector) => Vector::extend(Vector)
Let's make it a bit more clear when we're appending the elements from one vector to the end of another vector.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/SyntaxHighlighter')
-rw-r--r--Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp b/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp
index fe899e5940..d08ea0c11f 100644
--- a/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp
+++ b/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp
@@ -99,7 +99,7 @@ void SyntaxHighlighter::rehighlight(Palette const& palette)
register_nested_token_pairs(proxy_client.corrected_token_pairs(highlighter.matching_token_pairs()));
}
- spans.append(proxy_client.corrected_spans());
+ spans.extend(proxy_client.corrected_spans());
substring_builder.clear();
} else if (state == State::CSS) {
// FIXME: Highlight CSS code here instead.