Skip to content

Commit b3befdc

Browse files
authored
update annotations
1 parent 1f233a6 commit b3befdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/plenary/path.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,8 @@ end
521521
---current working directory.
522522
---@generic T: Path
523523
---@param opts { new_name: Path|string }
524-
---@return T
524+
---@param opts { new_name: Path|string } options table containing the new name
525+
---@return Path # Path representing the new name
525526
function Path:rename(opts)
526527
-- TODO: For reference, Python's `Path.rename()` actually says/does this:
527528
--

0 commit comments

Comments
 (0)