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 b3befdcCopy full SHA for b3befdc
lua/plenary/path.lua
@@ -521,7 +521,8 @@ end
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
525
+---@return Path # Path representing the new name
526
function Path:rename(opts)
527
-- TODO: For reference, Python's `Path.rename()` actually says/does this:
528
--
0 commit comments