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/examples/tcp_echo.md | |
parent | 6e7208bec2911ac0d1729f334fc90bc50b8f9203 (diff) |
feat: add $STD_VERSION replacement variable in docs (#6922)
Diffstat (limited to 'docs/examples/tcp_echo.md')
-rw-r--r-- | docs/examples/tcp_echo.md | 4 |
1 files changed, 2 insertions, 2 deletions
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: |