Skip to content

Commit

Permalink
docs: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Oudwins committed Aug 17, 2024
1 parent 85885fc commit 462c3bb
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,21 +296,6 @@ templ Form(data *SignupFormData, errs z.ZogErrMap) {
<p class="error">{e[0].Message}</p>
}
}

//
```

Now inside our form template we can do something like this:

```go

templ Form(errs z.ZogErrMap) {
<input type="text" name="name" value="">
// display only the first error
if e, ok := errs["name"]; ok {
<p class="error">{e[0].Message}</p>
}
}
```

#### REST API Responses
Expand Down

0 comments on commit 462c3bb

Please sign in to comment.