mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
LibJS: Use string::formatted() in to_string() functions
This commit is contained in:
parent
bc701658f8
commit
2e2571743b
8 changed files with 11 additions and 12 deletions
|
@ -38,7 +38,7 @@ public:
|
|||
virtual ~BigInt();
|
||||
|
||||
const Crypto::SignedBigInteger& big_integer() const { return m_big_integer; }
|
||||
const String to_string() const { return String::format("%sn", m_big_integer.to_base10().characters()); }
|
||||
const String to_string() const { return String::formatted("{}n", m_big_integer.to_base10()); }
|
||||
|
||||
private:
|
||||
virtual const char* class_name() const override { return "BigInt"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue