summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-19 14:54:06 +0800
committerGitHub <noreply@github.com>2022-07-19 14:54:06 +0800
commit96a663a0780a4d80446781b4367aa4ac36761fc6 (patch)
tree5a83f449438e1ed5d4412105c80549611a7cb371
parent67301c33eafa7a46a8b6e05fec8aac27539f4a05 (diff)
parentcae5753d06cfb7d77cd0e998ea9ffe547d56518a (diff)
downloadlua-language-server-96a663a0780a4d80446781b4367aa4ac36761fc6.zip
Merge pull request #1352 from serg3295/fix_lfs
fix typos in annotation
-rw-r--r--meta/3rd/lfs/library/lfs.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/3rd/lfs/library/lfs.lua b/meta/3rd/lfs/library/lfs.lua
index babbd156..76f457b7 100644
--- a/meta/3rd/lfs/library/lfs.lua
+++ b/meta/3rd/lfs/library/lfs.lua
@@ -62,7 +62,7 @@ In case of any errors it returns nil and the error message. In particular, if th
function lfs.lock_dir(path, seconds_stale)
end
----comment Returns a string with the current working directory or nil plus an error string.
+---Returns a string with the current working directory or nil plus an error string.
---@return string
function lfs.currentdir()
end
@@ -101,11 +101,6 @@ end
--[[
Creates a new directory. The argument is the name of the new directory.
Returns true in case of success or nil, an error message and a system-dependent error code in case of error.
- lfs.rmdir (dirname)
- Removes an existing directory. The argument is the name of the directory.
- Returns true in case of success or nil, an error message and a system-dependent error code in case of error.
- lfs.setmode (file, mode)
- Sets the writing mode for a file. The mode string can be either "binary" or "text". Returns true followed the previous mode string for the file, or nil followed by an error string in case of errors. On non-Windows platforms, where the two modes are identical, setting the mode has no effect, and the mode is always returned as binary.
]]
---@param dirname string
---@return boolean, string
@@ -161,4 +156,4 @@ Returns true if the operation was successful; in case of error, it returns nil p
function lfs.unlock(filehandle, start, length)
end
-return lfs \ No newline at end of file
+return lfs