1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

website: update http example (#2367)

This commit is contained in:
Ryan Dahl 2019-05-21 00:31:57 -04:00 committed by GitHub
parent 22feb74ba1
commit 0e89ca7b70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ href="https://github.com/denoland/deno_install/blob/master/install.ps1">https://
<p>Or a more complex one:</p>
<pre><code class="typescript language-typescript">import { serve } from "https://deno.land/std@v0.3.2/http/server.ts";
<pre><code class="typescript language-typescript">import { serve } from "https://deno.land/std@v0.5/http/server.ts";
async function main() {
const body = new TextEncoder().encode("Hello World\n");

View file

@ -289,8 +289,8 @@ test myTestFunction ... ok
Example of test:
```ts
import { assertEquals } from "https://deno.land/std@v0.3.1/testing/asserts.ts";
import { test } from "https://deno.land/std@v0.3.1/testing/mod.ts";
import { assertEquals } from "https://deno.land/std@v0.5/testing/asserts.ts";
import { test } from "https://deno.land/std@v0.5/testing/mod.ts";
import { foo } from "./mod.ts";
test(function myTestFunction() {