Skip to content

Commit

Permalink
docs(path): fix documentation of path.exists (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaurens authored Jul 16, 2024
1 parent f3d8e99 commit 375d5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/pl/path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ end

--- does a path exist?
-- @string P A file path
-- @return the file path if it exists (either as file, directory, socket, etc), nil otherwise
-- @return the file path if it exists (either as file, directory, socket, etc), false otherwise
function path.exists(P)
assert_string(1,P)
return attrib(P,'mode') ~= nil and P
Expand Down

0 comments on commit 375d5c5

Please sign in to comment.