diff options
Diffstat (limited to 'lib/rbconfig/obsolete.rb')
-rw-r--r-- | lib/rbconfig/obsolete.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbconfig/obsolete.rb b/lib/rbconfig/obsolete.rb index 7025fb43fb..52bc5c20d4 100644 --- a/lib/rbconfig/obsolete.rb +++ b/lib/rbconfig/obsolete.rb @@ -4,7 +4,7 @@ module ::RbConfig class << Obsolete def _warn_ loc, = caller_locations(2, 1) - loc = "#{loc.to_s}: " if loc + loc = "#{loc}: " if loc warn "#{loc}Use RbConfig instead of obsolete and deprecated Config." self end |