diff options
Diffstat (limited to 'js/symlink.ts')
-rw-r--r-- | js/symlink.ts | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/js/symlink.ts b/js/symlink.ts index 20232c2e5..0e633f138 100644 --- a/js/symlink.ts +++ b/js/symlink.ts @@ -4,13 +4,12 @@ import { flatbuffers } from "flatbuffers"; import * as dispatch from "./dispatch"; import * as util from "./util"; -/** - * Synchronously creates newname as a symbolic link to oldname. - * The type argument can be set to 'dir' or 'file' and is only - * available on Windows (ignored on other platforms). +/** Synchronously creates `newname` as a symbolic link to `oldname`. The type + * argument can be set to `dir` or `file` and is only available on Windows + * (ignored on other platforms). * - * import { symlinkSync } from "deno"; - * symlinkSync("old/name", "new/name"); + * import { symlinkSync } from "deno"; + * symlinkSync("old/name", "new/name"); */ export function symlinkSync( oldname: string, @@ -20,13 +19,12 @@ export function symlinkSync( dispatch.sendSync(...req(oldname, newname, type)); } -/** - * Creates newname as a symbolic link to oldname. - * The type argument can be set to 'dir' or 'file' and is only - * available on Windows (ignored on other platforms). +/** Creates `newname` as a symbolic link to `oldname`. The type argument can be + * set to `dir` or `file` and is only available on Windows (ignored on other + * platforms). * - * import { symlink } from "deno"; - * await symlink("old/name", "new/name"); + * import { symlink } from "deno"; + * await symlink("old/name", "new/name"); */ export async function symlink( oldname: string, |