summaryrefslogtreecommitdiff
path: root/std/examples
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples')
-rw-r--r--std/examples/chat/server_test.ts2
-rw-r--r--std/examples/flags.ts7
2 files changed, 8 insertions, 1 deletions
diff --git a/std/examples/chat/server_test.ts b/std/examples/chat/server_test.ts
index 92eb50f92..7375de47a 100644
--- a/std/examples/chat/server_test.ts
+++ b/std/examples/chat/server_test.ts
@@ -3,7 +3,7 @@ import { assert, assertEquals } from "../../testing/asserts.ts";
import { TextProtoReader } from "../../textproto/mod.ts";
import { BufReader } from "../../io/bufio.ts";
import { connectWebSocket, WebSocket } from "../../ws/mod.ts";
-import { delay } from "../../util/async.ts";
+import { delay } from "../../async/delay.ts";
const { test } = Deno;
diff --git a/std/examples/flags.ts b/std/examples/flags.ts
new file mode 100644
index 000000000..4625b8c96
--- /dev/null
+++ b/std/examples/flags.ts
@@ -0,0 +1,7 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+const { args } = Deno;
+import { parse } from "../flags/mod.ts";
+
+if (import.meta.main) {
+ console.dir(parse(args));
+}