Преглед изворни кода

Kernel: Remove confused comment in KBufferBuilder::appendff()

KBufferBuilder exists for code that wants to build a KBuffer instead
of a String. KBuffer is backed by anonymous VM, while String is backed
by a kernel heap allocation.
Andreas Kling пре 4 година
родитељ
комит
4d2473b7fa
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      Kernel/KBufferBuilder.h

+ 1 - 2
Kernel/KBufferBuilder.h

@@ -31,8 +31,7 @@ public:
     template<typename... Parameters>
     void appendff(CheckedFormatString<Parameters...>&& fmtstr, const Parameters&... parameters)
     {
-        // FIXME: This is really not the way to go about it, but vformat expects a
-        //        StringBuilder. Why does this class exist anyways?
+        // FIXME: This really not ideal, but vformat expects StringBuilder.
         StringBuilder builder;
         vformat(builder, fmtstr.view(), AK::VariadicFormatParams { parameters... });
         append_bytes(builder.string_view().bytes());