mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
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:
parent
e38bcd544a
commit
51765c0c8b
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ module Spectator::Formatting
|
||||||
|
|
||||||
# Creates the values mapper.
|
# Creates the values mapper.
|
||||||
def initialize(@values : T)
|
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
|
end
|
||||||
|
|
||||||
# Yields pairs that can be printed to output.
|
# Yields pairs that can be printed to output.
|
||||||
|
|
Loading…
Reference in a new issue