Skip to content

Commit

Permalink
Fix return type restriction for Number#humanize overload (#10633)
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored May 21, 2021
1 parent 11ffd08 commit 60d227c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/humanize.cr
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ struct Number
end

# :ditto:
def humanize(precision = 3, separator = '.', delimiter = ',', *, base = 10 ** 3, significant = true, prefixes : Proc) : Nil
def humanize(precision = 3, separator = '.', delimiter = ',', *, base = 10 ** 3, significant = true, prefixes : Proc) : String
String.build do |io|
humanize(io, precision, separator, delimiter, base: base, significant: significant, prefixes: prefixes)
end
Expand Down

0 comments on commit 60d227c

Please sign in to comment.