diff options
Diffstat (limited to 'js/make_temp_dir.ts')
-rw-r--r-- | js/make_temp_dir.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/js/make_temp_dir.ts b/js/make_temp_dir.ts index 4e9b45745..1ee095bbc 100644 --- a/js/make_temp_dir.ts +++ b/js/make_temp_dir.ts @@ -12,9 +12,8 @@ export interface MakeTempDirOptions { /** makeTempDirSync is the synchronous version of `makeTempDir`. * - * import { makeTempDirSync } from "deno"; - * const tempDirName0 = makeTempDirSync(); - * const tempDirName1 = makeTempDirSync({ prefix: 'my_temp' }); + * const tempDirName0 = Deno.makeTempDirSync(); + * const tempDirName1 = Deno.makeTempDirSync({ prefix: 'my_temp' }); */ export function makeTempDirSync(options: MakeTempDirOptions = {}): string { return res(dispatch.sendSync(...req(options))); @@ -28,9 +27,8 @@ export function makeTempDirSync(options: MakeTempDirOptions = {}): string { * same directory. It is the caller's responsibility to remove the directory * when no longer needed. * - * import { makeTempDir } from "deno"; - * const tempDirName0 = await makeTempDir(); - * const tempDirName1 = await makeTempDir({ prefix: 'my_temp' }); + * const tempDirName0 = await Deno.makeTempDir(); + * const tempDirName1 = await Deno.makeTempDir({ prefix: 'my_temp' }); */ export async function makeTempDir( options: MakeTempDirOptions = {} |