Skip to content

Commit 0b47ea1

Browse files
committed
doc: fix assertion message typo
1 parent d92eab6 commit 0b47ea1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/luarocks/build/lls-addon.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ local function copyFile(source, destination)
158158
if dirName ~= "" then
159159
assertContext("when creating intermediate folders for " .. destination, fs.make_dir(dirName))
160160
end
161-
assertContext("when copying into" .. destination, fs.copy(source, destination))
161+
assertContext("when copying into " .. destination, fs.copy(source, destination))
162162
end
163163

164164
---@param source string
@@ -175,6 +175,8 @@ end
175175
---@field source string
176176
---@field destination string
177177

178+
---copies any files and directories listed in `installEntries`
179+
---@param installEntries lls-addon.install-entry[]
178180
local function installFiles(installEntries)
179181
for _, entry in ipairs(installEntries) do
180182
local type = entry.type
@@ -192,6 +194,8 @@ local function installFiles(installEntries)
192194
end
193195
end
194196

197+
---creates a "diffed" .luarc.json configuration that represents all the changes
198+
---to apply to the user's configuration files
195199
---@param installDir string
196200
---@param rockspecSettings unknown
197201
---@return { [string]: any }? luarc

0 commit comments

Comments
 (0)