From b4288e9e017ac1f7b0fa2b01d5226304c7839743 Mon Sep 17 00:00:00 2001 From: oudwins Date: Sat, 17 Aug 2024 09:58:45 +0200 Subject: [PATCH] docs: typos... --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f7ac0d9..91a57c0 100644 --- a/README.md +++ b/README.md @@ -279,12 +279,12 @@ func handleSignup(w http.ResponseWriter, r *http.Request) { errs := schema.Parse(zhttp.NewRequestDataProvider(r), &signupFormData) if errs != nil { - www.Render(signupFormTempl(errs)) + www.Render(signupFormTempl(&signupFormData, errs)) } // handle successful signup } -templ Form(data *SignupFormData, errs z.ZogErrMap) { +templ signupFormTempl(data *SignupFormData, errs z.ZogErrMap) { // display only the first error if e, ok := errs["email"]; ok {