Skip to content

Commit 9dbe5f1

Browse files
authored
chore: make it easier to specify other port
When port 8000 is already in use, make it easier for users of the tutorial to change it to an different port
1 parent 3ff7cc9 commit 9dbe5f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ project directory and write the following code:
161161

162162
~~~~ typescript twoslash [Deno]
163163
Deno.serve(request =>
164-
new Response("Hello, world", {
164+
new Response({ port: 8000 }, "Hello, world", {
165165
headers: { "Content-Type": "text/plain" }
166166
})
167167
);

0 commit comments

Comments
 (0)