Skip to content

Commit

Permalink
Fix documentation of path.exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaurens committed Jul 15, 2024
1 parent f3d8e99 commit 768cb45
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 768cb45

Please sign in to comment.