aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/fs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/vim/fs.lua')
-rw-r--r--runtime/lua/vim/fs.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/fs.lua b/runtime/lua/vim/fs.lua
index cdb314fa3d..48d76e5d7e 100644
--- a/runtime/lua/vim/fs.lua
+++ b/runtime/lua/vim/fs.lua
@@ -20,7 +20,7 @@ local iswin = vim.uv.os_uname().sysname == 'Windows_NT'
--- </pre>
---
---@param start (string) Initial file or directory.
----@return (function) Iterator
+---@return function Iterator
function M.parents(start)
return function(_, dir)
local parent = M.dirname(dir)
@@ -37,7 +37,7 @@ end
--- Return the parent directory of the given file or directory
---
---@param file (string) File or directory
----@return (string) Parent directory of {file}
+---@return string|nil Parent directory of {file}
function M.dirname(file)
if file == nil then
return nil
@@ -59,8 +59,8 @@ end
--- Return the basename of the given file or directory
---
----@param file (string) File or directory
----@return (string) Basename of {file}
+---@param file string File or directory
+---@return string|nil Basename of {file}
function M.basename(file)
if file == nil then
return nil