From 0177a678f9eac7a3dbb936b42b2cce70ea5783b3 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 23 Oct 2022 20:40:56 -0600 Subject: [PATCH] Avoid shadowing variable --- src/spectator/mocks/arguments.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectator/mocks/arguments.cr b/src/spectator/mocks/arguments.cr index a2ea853..b033c71 100644 --- a/src/spectator/mocks/arguments.cr +++ b/src/spectator/mocks/arguments.cr @@ -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