We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f233a6 commit 1e194ecCopy full SHA for 1e194ec
lua/plenary/path.lua
@@ -519,9 +519,8 @@ end
519
---returning a new Path instance upon success. The rename is aborted if the
520
---new path already exists. Relative paths are interpreted relative to the
521
---current working directory.
522
----@generic T: Path
523
----@param opts { new_name: Path|string }
524
----@return T
+---@param opts { new_name: Path|string } options table containing the new name
+---@return Path # Path representing the new name
525
function Path:rename(opts)
526
-- TODO: For reference, Python's `Path.rename()` actually says/does this:
527
--
0 commit comments