From 689f14e255593172abe31a7669b47b528e47214f Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sat, 19 Oct 2024 00:53:29 +0900 Subject: [PATCH] [ruby/ipaddr] Use string interpolation instead of format() https://github.com/ruby/ipaddr/commit/73f59e111f --- lib/ipaddr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb index b40d5c0359..dc33fffcb5 100644 --- a/lib/ipaddr.rb +++ b/lib/ipaddr.rb @@ -246,7 +246,7 @@ class IPAddr # Returns a string containing the IP address representation in # cidr notation def cidr - format("%s/%s", to_s, prefix) + "#{to_s}/#{prefix}" end # Returns a network byte ordered string form of the IP address.