aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/platform.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-14 17:27:12 +0200
committerGitHub <noreply@github.com>2022-07-14 17:27:12 +0200
commit63de62cd0b0b53c5946d67ee2a3c2dac16379707 (patch)
tree54d69e3bc51370787dfef71856747727ed5a84d5 /lua/mason-core/platform.lua
parentfix(arduino_language_server): fix Windows asset files (#72) (diff)
downloadmason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.gz
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.bz2
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.lz
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.xz
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.zst
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.zip
chore: change emmylua annotation syntax from @ to : for comments (#73)
Diffstat (limited to 'lua/mason-core/platform.lua')
-rw-r--r--lua/mason-core/platform.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/mason-core/platform.lua b/lua/mason-core/platform.lua
index 987e70bf..8fc6ba38 100644
--- a/lua/mason-core/platform.lua
+++ b/lua/mason-core/platform.lua
@@ -63,7 +63,7 @@ M.os_distribution = fun.lazy(function()
local Result = require "mason-core.result"
---Parses the provided contents of an /etc/\*-release file and identifies the Linux distribution.
- ---@param contents string @The contents of a /etc/\*-release file.
+ ---@param contents string: The contents of a /etc/\*-release file.
---@return table<string, any>
local function parse_linux_dist(contents)
local lines = vim.split(contents, "\n")
@@ -121,7 +121,7 @@ M.os_distribution = fun.lazy(function()
}
end)
----@type async fun() Result @of String
+---@type async fun(): Result<string>
M.get_homebrew_prefix = fun.lazy(function()
assert(M.is_mac, "Can only locate Homebrew installation on Mac systems.")
local spawn = require "mason-core.spawn"