Avoid shadowing variable

This commit is contained in:
Michael Miller 2022-10-23 20:40:56 -06:00
parent a728a037d4
commit 0177a678f9
No known key found for this signature in database
GPG Key ID: 32B47AE8F388A1FF
1 changed files with 2 additions and 2 deletions

View File

@ -111,9 +111,9 @@ module Spectator
# Add the keyword arguments.
offset = args.size
offset += splat.size if (splat = @splat)
kwargs.each_with_index(offset) do |name, value, i|
kwargs.each_with_index(offset) do |key, value, i|
io << ", " if i > 0
io << name << ": "
io << key << ": "
value.inspect(io)
end