[ruby/ipaddr] Use string interpolation instead of format()
https://github.com/ruby/ipaddr/commit/73f59e111f
This commit is contained in:
parent
d1b5c10957
commit
689f14e255
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user