diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-21 23:36:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-21 23:49:02 +0200 |
commit | f4a15c8d428d91b8fff3822a7a8b9603f5b876fc (patch) | |
tree | 9bfbae15be8ee689a3a6578e4e20957565917153 /Userland/Libraries/LibCore/SocketAddress.h | |
parent | 3a891abc376fc644f79c543b2387b80fba2f8ba1 (diff) | |
download | serenity-f4a15c8d428d91b8fff3822a7a8b9603f5b876fc.zip |
LibCore: Convert String::format() => String::formatted()
Diffstat (limited to 'Userland/Libraries/LibCore/SocketAddress.h')
-rw-r--r-- | Userland/Libraries/LibCore/SocketAddress.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/SocketAddress.h b/Userland/Libraries/LibCore/SocketAddress.h index 87f7d8b63e..7395636150 100644 --- a/Userland/Libraries/LibCore/SocketAddress.h +++ b/Userland/Libraries/LibCore/SocketAddress.h @@ -74,7 +74,7 @@ public: { switch (m_type) { case Type::IPv4: - return String::format("%s:%d", m_ipv4_address.to_string().characters(), m_port); + return String::formatted("{}:{}", m_ipv4_address, m_port); case Type::Local: return m_local_address; default: |