summaryrefslogtreecommitdiff
path: root/js/rename.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/rename.ts')
-rw-r--r--js/rename.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/rename.ts b/js/rename.ts
index 8c54d9b2b..e5e08d647 100644
--- a/js/rename.ts
+++ b/js/rename.ts
@@ -8,8 +8,7 @@ import * as dispatch from "./dispatch";
* restrictions may apply when `oldpath` and `newpath` are in different
* directories.
*
- * import { renameSync } from "deno";
- * renameSync("old/path", "new/path");
+ * Deno.renameSync("old/path", "new/path");
*/
export function renameSync(oldpath: string, newpath: string): void {
dispatch.sendSync(...req(oldpath, newpath));
@@ -19,8 +18,7 @@ export function renameSync(oldpath: string, newpath: string): void {
* not a directory, `rename()` replaces it. OS-specific restrictions may apply
* when `oldpath` and `newpath` are in different directories.
*
- * import { rename } from "deno";
- * await rename("old/path", "new/path");
+ * await Deno.rename("old/path", "new/path");
*/
export async function rename(oldpath: string, newpath: string): Promise<void> {
await dispatch.sendAsync(...req(oldpath, newpath));