diff --git a/lua/plenary/path.lua b/lua/plenary/path.lua index 5f845c64..efb9d6e4 100644 --- a/lua/plenary/path.lua +++ b/lua/plenary/path.lua @@ -519,9 +519,8 @@ end ---returning a new Path instance upon success. The rename is aborted if the ---new path already exists. Relative paths are interpreted relative to the ---current working directory. ----@generic T: Path ----@param opts { new_name: Path|string } ----@return T +---@param opts { new_name: Path|string } options table containing the new name +---@return Path # Path representing the new name function Path:rename(opts) -- TODO: For reference, Python's `Path.rename()` actually says/does this: --