Skip to content

Commit 3822d67

Browse files
authored
Update html-templates.md
Fixes an intermediate implementation to pass the test
1 parent 2f2b656 commit 3822d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ New lines! Who cares? Well, our test does, because it's matching on an exact str
195195

196196
```go
197197
func Render(w io.Writer, p Post) error {
198-
_, err := fmt.Fprintf(w, "<h1>%s</h1><p>%s</p>", p.Title, p.Description)
198+
_, err := fmt.Fprintf(w, "<h1>%s</h1>\n<p>%s</p>\n", p.Title, p.Description)
199199
if err != nil {
200200
return err
201201
}

0 commit comments

Comments
 (0)