summaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/file_server.md4
-rw-r--r--docs/examples/subprocess.md2
-rw-r--r--docs/examples/tcp_echo.md4
-rw-r--r--docs/examples/unix_cat.md2
4 files changed, 6 insertions, 6 deletions
diff --git a/docs/examples/file_server.md b/docs/examples/file_server.md
index b59168764..4559b5e3d 100644
--- a/docs/examples/file_server.md
+++ b/docs/examples/file_server.md
@@ -3,14 +3,14 @@
This one serves a local directory in HTTP.
```shell
-deno install --allow-net --allow-read https://deno.land/std/http/file_server.ts
+deno install --allow-net --allow-read https://deno.land/std@$STD_VERSION/http/file_server.ts
```
Run it:
```shell
$ file_server .
-Downloading https://deno.land/std/http/file_server.ts...
+Downloading https://deno.land/std@$STD_VERSION/http/file_server.ts...
[...]
HTTP server listening on http://0.0.0.0:4500/
```
diff --git a/docs/examples/subprocess.md b/docs/examples/subprocess.md
index 80d0cc7da..72a3bc862 100644
--- a/docs/examples/subprocess.md
+++ b/docs/examples/subprocess.md
@@ -38,7 +38,7 @@ const p = Deno.run({
"deno",
"run",
"--allow-read",
- "https://deno.land/std/examples/cat.ts",
+ "https://deno.land/std@$STD_VERSION/examples/cat.ts",
...fileNames,
],
stdout: "piped",
diff --git a/docs/examples/tcp_echo.md b/docs/examples/tcp_echo.md
index 5dfc71b83..99e8cbd04 100644
--- a/docs/examples/tcp_echo.md
+++ b/docs/examples/tcp_echo.md
@@ -14,7 +14,7 @@ for await (const conn of listener) {
When this program is started, it throws PermissionDenied error.
```shell
-$ deno run https://deno.land/std/examples/echo_server.ts
+$ deno run https://deno.land/std@$STD_VERSION/examples/echo_server.ts
error: Uncaught PermissionDenied: network access to "0.0.0.0:8080", run again with the --allow-net flag
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
@@ -25,7 +25,7 @@ For security reasons, Deno does not allow programs to access the network without
explicit permission. To allow accessing the network, use a command-line flag:
```shell
-deno run --allow-net https://deno.land/std/examples/echo_server.ts
+deno run --allow-net https://deno.land/std@$STD_VERSION/examples/echo_server.ts
```
To test it, try sending data to it with netcat:
diff --git a/docs/examples/unix_cat.md b/docs/examples/unix_cat.md
index b45f2e680..efec9e3fb 100644
--- a/docs/examples/unix_cat.md
+++ b/docs/examples/unix_cat.md
@@ -20,5 +20,5 @@ I/O streams in Deno.
Try the program:
```shell
-deno run --allow-read https://deno.land/std/examples/cat.ts /etc/passwd
+deno run --allow-read https://deno.land/std@$STD_VERSION/examples/cat.ts /etc/passwd
```