From ddaab5a836a0ec669ceebeb75ff8543178e89dc3 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Tue, 5 Apr 2022 19:15:58 -0700 Subject: [PATCH] fix example --- examples/bun/http.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/bun/http.ts b/examples/bun/http.ts index c528cdd02b..4d58f270ff 100644 --- a/examples/bun/http.ts +++ b/examples/bun/http.ts @@ -23,13 +23,13 @@ Bun.serve({ }); // Start a fast HTTP server from the main file's export -export default { - fetch(req) { - return new Response( - `This is another way to start a server! - if the main file export default's an object - with 'fetch'. Bun automatically calls Bun.serve` - ); - }, - // so autocomplete & type checking works -} as Bun.Serve; +// export default { +// fetch(req) { +// return new Response( +// `This is another way to start a server! +// if the main file export default's an object +// with 'fetch'. Bun automatically calls Bun.serve` +// ); +// }, +// // so autocomplete & type checking works +// } as Bun.Serve;