diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-07-31 11:12:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 11:12:20 +0200 |
commit | 4afb4b6e46de2ed536a3c9828d70d7799b5b6d03 (patch) | |
tree | aa31f3ea3b5ca01a97e13a777eed51c7dcbd17c4 /docs/getting_started/first_steps.md | |
parent | 6e7208bec2911ac0d1729f334fc90bc50b8f9203 (diff) |
feat: add $STD_VERSION replacement variable in docs (#6922)
Diffstat (limited to 'docs/getting_started/first_steps.md')
-rw-r--r-- | docs/getting_started/first_steps.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/getting_started/first_steps.md b/docs/getting_started/first_steps.md index 4a551c415..7bb51bb15 100644 --- a/docs/getting_started/first_steps.md +++ b/docs/getting_started/first_steps.md @@ -23,7 +23,7 @@ console.log("Welcome to Deno 🦕"); Try the program: ```shell -deno run https://deno.land/std/examples/welcome.ts +deno run https://deno.land/std@$STD_VERSION/examples/welcome.ts ``` ### Making an HTTP request @@ -59,7 +59,7 @@ Let's walk through what this application does: Try it out: ```shell -deno run https://deno.land/std/examples/curl.ts https://example.com +deno run https://deno.land/std@$STD_VERSION/examples/curl.ts https://example.com ``` You will see this program returns an error regarding network access, so what did @@ -70,7 +70,7 @@ permission to do certain 'privileged' actions, such as access the network. Try it out again with the correct permission flag: ```shell -deno run --allow-net=example.com https://deno.land/std/examples/curl.ts https://example.com +deno run --allow-net=example.com https://deno.land/std@$STD_VERSION/examples/curl.ts https://example.com ``` ### Reading a file @@ -102,7 +102,7 @@ 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 ``` ### TCP server @@ -124,7 +124,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: |