mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
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.
This commit is contained in:
parent
d528c9c2ee
commit
4d2473b7fa
1 changed files with 1 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue