Skip to content

Commit 63d5974

Browse files
loc
1 parent b530dbf commit 63d5974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DocumentFunction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ function documentfunction(f::Function; location::Bool=true, maintext::AbstractSt
4343
for i = 1:nm
4444
if contains(ms[1], " at ")
4545
s = strip.(split(ms[i], " at "))
46-
ss = strip.(split(s[2], " in "))
46+
ss = strip.(split(s[1], " in "))
4747
methodname = ss[1]
4848
loc = s[2]
4949
else
5050
s = strip.(split(ms[i], " @ "))
5151
ss = strip.(split(s[2], " "))
52-
methodname = ss[1]
52+
methodname = s[1]
5353
loc = ss[2]
5454
end
5555
if location

0 commit comments

Comments
 (0)