Skip to content

Commit 1c2ea34

Browse files
committed
fix method view in doc
1 parent 2f57957 commit 1c2ea34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/cli/doc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ local function packObject(source, mark)
5757
new.returns[i] = packObject(rtn)
5858
end
5959
end
60-
new['view'] = getLabel(source)
60+
new['view'] = getLabel(source, source.parent.type == 'setmethod')
6161
end
6262
if source.type == 'doc.type.table' then
6363
new['fields'] = packObject(source.fields, mark)

0 commit comments

Comments
 (0)