Ver código fonte

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 anos atrás
pai
commit
4d2473b7fa
1 arquivos alterados com 1 adições e 2 exclusões
  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());