Skip to content

Commit 5415bce

Browse files
serenity4MichaelHatherly
authored andcommitted
Don't take all argnames
1 parent fb6699d commit 5415bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ function arguments(m::Method)
460460
end
461461
end
462462
if !isnothing(argnames)
463-
local args = map(argnames) do arg
463+
local args = map(argnames[1:nargs(m)]) do arg
464464
arg === Symbol("#unused#") ? "_" : arg
465465
end
466466
return filter(arg -> arg !== Symbol("#self#"), args)

0 commit comments

Comments
 (0)