From 3d65177dbcaf6d08c7e4a412beece8ee6939d466 Mon Sep 17 00:00:00 2001 From: tokiedokie Date: Sun, 4 Oct 2020 21:18:36 +0900 Subject: docs(std): version all imports in README (#7442) Use $STD_VERSION in std/ README files to automatically display proper version. --- std/ws/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/ws') diff --git a/std/ws/README.md b/std/ws/README.md index 329116a22..786d6f393 100644 --- a/std/ws/README.md +++ b/std/ws/README.md @@ -8,13 +8,13 @@ WebSockets, use the ```ts // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { serve } from "https://deno.land/std/http/server.ts"; +import { serve } from "https://deno.land/std@$STD_VERSION/http/server.ts"; import { acceptWebSocket, isWebSocketCloseEvent, isWebSocketPingEvent, WebSocket, -} from "https://deno.land/std/ws/mod.ts"; +} from "https://deno.land/std@$STD_VERSION/ws/mod.ts"; async function handleWs(sock: WebSocket) { console.log("socket connected!"); -- cgit v1.2.3