Skip to content

Commit a16651d

Browse files
committed
Two more type annotations.
1 parent 61018a8 commit a16651d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/lean/elan.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ local elan = { toolchain = {} }
2222
---@field path string the path to the toolchain on this machine
2323
---@field resolved_name string the identifier for this toolchain
2424

25-
--List the installed toolchains.
25+
---List the installed toolchains.
26+
---@return string[] toolchains the toolchains
2627
function elan.toolchain.list()
2728
local state = elan.state()
2829
return vim
2930
.iter(state.toolchains.installed)
31+
---@param each ElanToolchain
3032
:map(function(each)
3133
return each.resolved_name
3234
end)

0 commit comments

Comments
 (0)