Skip to content

Commit ed4afc6

Browse files
committed
fix some minor problems
thanks @MichaelHatherly for review :]
1 parent 534c2d2 commit ed4afc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utilities.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,16 @@ function printmethod_format(buffer::IOBuffer, binding::String, args::Vector{Stri
190190
if method_length_over_limit(
191191
length(binding) +
192192
1 +
193-
sum(length.(args)) +
194-
sum(length.(kws)) +
193+
sum(length, args) +
194+
sum(length, kws) +
195195
2*max(0, length(args)-1) +
196196
2*length(kws) +
197197
1 +
198198
length(return_type))
199199

200200
sep_delim = "\n"
201201
paren_delim = "\n"
202-
indent = " "
202+
indent = " "
203203
end
204204

205205
print(buffer, binding)
@@ -356,7 +356,7 @@ function printmethod(buffer::IOBuffer, binding::Docs.Binding, func, method::Meth
356356
type = "::$t"
357357
end
358358

359-
string(arg)*type*suffix
359+
"$arg$type$suffix"
360360
end
361361

362362
rt = Base.return_types(func, typesig)

0 commit comments

Comments
 (0)