summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/SocketAddress.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-21 23:36:31 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-21 23:49:02 +0200
commitf4a15c8d428d91b8fff3822a7a8b9603f5b876fc (patch)
tree9bfbae15be8ee689a3a6578e4e20957565917153 /Userland/Libraries/LibCore/SocketAddress.h
parent3a891abc376fc644f79c543b2387b80fba2f8ba1 (diff)
downloadserenity-f4a15c8d428d91b8fff3822a7a8b9603f5b876fc.zip
LibCore: Convert String::format() => String::formatted()
Diffstat (limited to 'Userland/Libraries/LibCore/SocketAddress.h')
-rw-r--r--Userland/Libraries/LibCore/SocketAddress.h2
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: