From f6b25566f662a29c147f393929a9572bfd00fb24 Mon Sep 17 00:00:00 2001 From: floscodes Date: Mon, 1 May 2023 10:10:17 +0200 Subject: [PATCH] update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7299ad4..178643c 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,12 @@ const allocator = std.heap.page_allocator; // Choose any allocator you want! fn index(req: Request) Response { _=req; - return Response.new("hello!"); + return Response.write("hello!"); } fn about(req: Request) Response { _=req; - return Response.new("about site"); + return Response.write("about site"); } fn writeJson(req: Request) Response { @@ -63,7 +63,7 @@ Example: ```zig fn hello(req: Request) Response { _ = req; - return Response.new("hello"); // `Server` will return a Reponse with body "hello". You will see "hello" on your browser. + return Response.write("hello"); // `Server` will return a Reponse with body "hello". You will see "hello" on your browser. } ```