Skip to content

Commit 1e194ec

Browse files
committed
update annotations
1 parent 1f233a6 commit 1e194ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lua/plenary/path.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,8 @@ end
519519
---returning a new Path instance upon success. The rename is aborted if the
520520
---new path already exists. Relative paths are interpreted relative to the
521521
---current working directory.
522-
---@generic T: Path
523-
---@param opts { new_name: Path|string }
524-
---@return T
522+
---@param opts { new_name: Path|string } options table containing the new name
523+
---@return Path # Path representing the new name
525524
function Path:rename(opts)
526525
-- TODO: For reference, Python's `Path.rename()` actually says/does this:
527526
--

0 commit comments

Comments
 (0)