1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

LibJS: Use string::formatted() in to_string() functions

This commit is contained in:
Linus Groh 2020-10-04 15:18:12 +01:00 committed by Andreas Kling
parent bc701658f8
commit 2e2571743b
8 changed files with 11 additions and 12 deletions

View file

@ -41,7 +41,7 @@ public:
const String& description() const { return m_description; }
bool is_global() const { return m_is_global; }
String to_string() const { return String::format("Symbol(%s)", description().characters()); }
String to_string() const { return String::formatted("Symbol({})", description()); }
private:
virtual const char* class_name() const override { return "Symbol"; }