Skip to content

Commit

Permalink
fix: typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
neandrake committed Dec 21, 2023
1 parent af75323 commit bc51957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/persisted/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ local function escape_pattern(str, pattern, replace, n)
end

---Gets the directory from the file/path argument passed to Neovim if there's
---exactly one and it resolves to an valid directory
---exactly one and it resolves to a valid directory
---@return string|nil
local function args_path()
if vim.fn.argc() ~= 1 then
return nil
end

-- Use expand() to resolve `~`and use fs_realpath to resolve both '.' and
-- Use expand() to resolve '~' and use fs_realpath to resolve both '.' and
-- relative paths passed as arguments. Note that argv() will only ever return
-- paths/files passed as arguments and does not include other
-- parameters/arguments. fs_realpath() returns nil if the path doesn't exist.
Expand Down

0 comments on commit bc51957

Please sign in to comment.