From 11964d177407107d8d980ba8de9caaac4200bae0 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Tue, 2 Aug 2022 22:22:35 +0900 Subject: [PATCH 1/2] docs: fix wrong argument --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d2ad85..9e7db2f 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ const { url, getURL, server, close } = await listen(handle, options?) **Plain handle function:** ```ts -listen('/', ((_req, res) => { +listen(((_req, res) => { res.end('hi') }) ``` From a532dfc373dc5b37e72cafe8049f3356c4cade24 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Tue, 2 Aug 2022 15:31:36 +0200 Subject: [PATCH 2/2] Update README.md Co-authored-by: Daniel Roe --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e7db2f..ab739b2 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ const { url, getURL, server, close } = await listen(handle, options?) **Plain handle function:** ```ts -listen(((_req, res) => { +listen((_req, res) => { res.end('hi') }) ```