diff --git a/Userland/Libraries/LibDiff/Format.cpp b/Userland/Libraries/LibDiff/Format.cpp index 84e211cce41..147eab48df3 100644 --- a/Userland/Libraries/LibDiff/Format.cpp +++ b/Userland/Libraries/LibDiff/Format.cpp @@ -7,16 +7,15 @@ #include "Format.h" #include #include -#include namespace Diff { String generate_only_additions(const String& text) { auto lines = text.split('\n', true); // Keep empty StringBuilder builder; - builder.appendf("@@ -0,0 +1,%zu @@\n", lines.size()); + builder.appendff("@@ -0,0 +1,{} @@\n", lines.size()); for (const auto& line : lines) { - builder.appendf("+%s\n", line.characters()); + builder.appendff("+{}\n", line); } return builder.to_string(); }