summaryrefslogtreecommitdiff
path: root/std/encoding/_yaml/example/sample_document.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding/_yaml/example/sample_document.ts')
-rw-r--r--std/encoding/_yaml/example/sample_document.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/std/encoding/_yaml/example/sample_document.ts b/std/encoding/_yaml/example/sample_document.ts
index da969d679..f66b3c417 100644
--- a/std/encoding/_yaml/example/sample_document.ts
+++ b/std/encoding/_yaml/example/sample_document.ts
@@ -3,10 +3,8 @@
import { parse } from "../../yaml.ts";
-const { readFileSync, cwd } = Deno;
-
(() => {
- const yml = readFileSync(`${cwd()}/example/sample_document.yml`);
+ const yml = Deno.readFileSync(`${Deno.cwd()}/example/sample_document.yml`);
const document = new TextDecoder().decode(yml);
const obj = parse(document) as object;