Skip to content

Commit 4a92c3a

Browse files
add: multiple return values example (#109)
Closed LuaLS/lua-language-server#3374
1 parent 1944f16 commit 4a92c3a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/content/wiki/annotations.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,17 @@ local function isEnabled() end
11791179

11801180
</Accordion>
11811181

1182+
<Accordion>
1183+
<span slot="summary">Multiple Named, Described Function Returns</span>
1184+
1185+
```Lua
1186+
---@return boolean ok # true on success
1187+
---@return table|nil result # the parsed result or nil on error
1188+
local function parse() end
1189+
```
1190+
1191+
</Accordion>
1192+
11821193
<Accordion>
11831194
<span slot="summary">Described Function Return</span>
11841195

0 commit comments

Comments
 (0)