From 4afb4b6e46de2ed536a3c9828d70d7799b5b6d03 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 31 Jul 2020 11:12:20 +0200 Subject: feat: add $STD_VERSION replacement variable in docs (#6922) --- docs/examples/tcp_echo.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/tcp_echo.md') 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: -- cgit v1.2.3