Fix strange compiler error

Compiler said there was an error, but not what it was.
The compiler wasn't clear where the issue was either.
This commit is contained in:
Michael Miller 2019-03-03 19:06:37 -07:00
parent e38bcd544a
commit 51765c0c8b

View file

@ -8,7 +8,7 @@ module Spectator::Formatting
# Creates the values mapper.
def initialize(@values : T)
@max_key_length = T.types.keys.map(&.to_s.size).max
@max_key_length = @values.keys.map(&.to_s.size).max
end
# Yields pairs that can be printed to output.